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

Defined in

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