Class

MessageReaction

Represents a reaction added to or removed from a message.

Extends Base

Constructor

new MessageReaction(client: Client, data: GatewayMessageReactionAddDispatchData | GatewayMessageReactionRemoveDispatchData)
client
Client

Properties

NameTypeDescription
channelIdread-onlystring
clientread-onlyClient
emojiread-onlyReactionEmojiPayload
emojiIdentifierread-onlystringEmoji as a string for reaction routes: unicode or name:id (a:name:id when animated).
guildread-onlyGuild | nullGuild where this reaction was added. Resolved from cache; null for DMs or if not cached.
guildIdread-onlystring | null
messageIdread-onlystring

Methods

.fetchMessage()

→ Promise<Message>

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

await reaction.fetchMessage();