# fetchText

`function` in `seedcord` · v0.14.0

<https://docs.seedcord.org/packages/seedcord/0.14.0/functions/fetch-text>

Fetches and validates a text channel. Refuses when the channel doesn't exist or isn't a text channel.

```ts
async fetchText(
    client: Client,
    channelId: TextChannelResolvable
): Promise<TextChannel>
```

Fetches and validates a text channel. Refuses when the channel doesn't exist or isn't a text channel.

Parameters.

- `client` `Client` — The Discord client instance
- `channelId` `TextChannelResolvable` — Channel ID or TextChannel instance

Returns `Promise<TextChannel>`.
