Skip to main content

Function: canReact()

canReact(channel: Nullish | ChannelTypes): boolean

Determines whether or not we can send react to messages in a given channel.

Parameters

ParameterTypeDescription
channelNullish | ChannelTypesThe channel to test the permissions from.

Returns

boolean

Whether or not we can react to messages in the specified channel.

Source

projects/utilities/packages/discord.js-utilities/src/lib/utilities.ts:76