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
Parameter | Type | Description |
---|---|---|
channel | Nullish | ChannelTypes | The channel to check. |
Returns
channel is PublicThreadChannel<boolean>
Defined in
projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:132