.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();Class
Represents a reaction added to or removed from a message.
Extends Base
new MessageReaction(client: Client, data: GatewayMessageReactionAddDispatchData | GatewayMessageReactionRemoveDispatchData)Client| Name | Type | Description |
|---|---|---|
| channelIdread-only | string | |
| clientread-only | Client | |
| emojiread-only | ReactionEmojiPayload | |
| emojiIdentifierread-only | string | Emoji as a string for reaction routes: unicode or name:id (a:name:id when animated). |
| guildread-only | Guild | null | Guild where this reaction was added. Resolved from cache; null for DMs or if not cached. |
| guildIdread-only | string | null | |
| messageIdread-only | string |
→ 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();