Skip to main content

Function: isNewsThreadChannel()

isNewsThreadChannel(channel: Nullish | ChannelTypes): channel is PublicThreadChannel

Defined in: projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:132

Checks whether a given channel is an Announcement PublicThreadChannel This checks for ChannelType.AnnouncementThread.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check.

Returns

channel is PublicThreadChannel