Skip to main content

Function: isThreadChannel()

isThreadChannel(channel: Nullish | ChannelTypes): channel is ThreadChannel<boolean>

Checks whether a given channel is a ThreadChannel This checks for ChannelTypes.isThread().

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check.

Returns

channel is ThreadChannel<boolean>

Defined in

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