Skip to main content

Function: isPublicThreadChannel()

isPublicThreadChannel(channel: Nullish | ChannelTypes): channel is PublicThreadChannel<boolean>

Checks whether a given channel is a PublicThreadChannel This checks for ChannelType.PublicThread.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check.

Returns

channel is PublicThreadChannel<boolean>

Defined in

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