Skip to main content

Function: isCategoryChannel()

isCategoryChannel(channel: Nullish | ChannelTypes): channel is CategoryChannel

Checks whether a given channel is a CategoryChannel This checks for ChannelType.GuildCategory.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check

Returns

channel is CategoryChannel

Source

projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:39