Skip to content

MessageReaction

Package: @erinjs/core

Represents a reaction added to or removed from a message.

Constructor

NameTypeOptionalDescription
clientClientNo
dataanyNo

Properties

NameTypeReadonlyOptionalDescription
channelIdstringYesNo
clientClientYesNo
emojiGatewayReactionEmojiYesNo
emojiIdentifierstringYesNoEmoji as a string: unicode or "name:id" for custom.
guildGuild | nullYesNoGuild where this reaction was added. Resolved from cache; null for DMs or if not cached.
guildIdstring | nullYesNo
messageIdstringYesNo

Methods

fetchMessage() async

Fetch the message this reaction belongs to. Use when you need to edit, delete, or otherwise interact with the message.

Returns: Promise<Message>

Parameters:

None

Released under the Apache-2.0 License.