Function: isNewsChannel()
isNewsChannel(
channel
:Nullish
|ChannelTypes
):channel is NewsChannel
Checks whether a given channel is a NewsChannel. This checks for ChannelType.GuildAnnouncement.
Parameters
Parameter | Type | Description |
---|---|---|
channel | Nullish | ChannelTypes | The channel to check. |
Returns
channel is NewsChannel
Defined in
projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:87