Skip to main content

Function: isNewsChannel()

isNewsChannel(channel: Nullish | ChannelTypes): channel is NewsChannel

Checks whether a given channel is a NewsChannel. This checks for ChannelType.GuildAnnouncement.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to check.

Returns

channel is NewsChannel

Source

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