Function: isGuildBasedChannel()
isGuildBasedChannel(
channel:Nullish|ChannelTypes):channel is GuildTextBasedChannelTypes
Defined in: projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:68
Checks if a channel comes from a guild. This checks that the channel is not ChannelType.DM.
Parameters
| Parameter | Type | Description |
|---|---|---|
channel | Nullish | ChannelTypes | The channel to check |
Returns
channel is GuildTextBasedChannelTypes
Whether or not the channel is guild-based.