Skip to main content

Function: isPrivateThreadChannel()

isPrivateThreadChannel(channel: Nullish | ChannelTypes): channel is PrivateThreadChannel

Checks whether a given channel is a PrivateThreadChannel This checks for ChannelType.PrivateThread.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check.

Returns

channel is PrivateThreadChannel

Source

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