Function: isTextChannel()
isTextChannel(
channel
:Nullish
|ChannelTypes
):channel is TextChannel
Checks whether a given channel is a TextChannel. This checks for ChannelType.GuildText.
Parameters
Parameter | Type | Description |
---|---|---|
channel | Nullish | ChannelTypes | The channel to check. |
Returns
channel is TextChannel
Defined in
projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:96