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

Defined in

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