Skip to main content

Function: isNewsThreadChannel()

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

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<boolean>

Defined in

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