Class
MessageReaction
Represents a reaction added to or removed from a message.
Extends Base
Constructor
new MessageReaction
(client: Client, data: GatewayMessageReactionAddDispatchData | GatewayMessageReactionRemoveDispatchData)| Param | Type | Description |
|---|---|---|
| client | Client | |
| data | GatewayMessageReactionAddDispatchData | GatewayMessageReactionRemoveDispatchData |
Properties
channelId
: string (readonly)client
: Client (readonly)emoji
: ReactionEmojiPayload (readonly)emojiIdentifier
: string (readonly)Emoji as a string: unicode or "name:id" for custom.
guild
: Guild | null (readonly)Guild where this reaction was added. Resolved from cache; null for DMs or if not cached.
guildId
: string | null (readonly)messageId
: string (readonly)Methods
fetchMessage
(): Promise<Message>Fetch the message this reaction belongs to. Use when you need to edit, delete, or otherwise interact with the message.