Appearance
MessageReaction
Package: @erinjs/core
Represents a reaction added to or removed from a message.
Constructor
| Name | Type | Optional | Description |
|---|---|---|---|
client | Client | No | |
data | any | No |
Properties
| Name | Type | Readonly | Optional | Description |
|---|---|---|---|---|
channelId | string | Yes | No | |
client | Client | Yes | No | |
emoji | GatewayReactionEmoji | Yes | No | |
emojiIdentifier | string | Yes | No | Emoji as a string: unicode or "name:id" for custom. |
guild | Guild | null | Yes | No | Guild where this reaction was added. Resolved from cache; null for DMs or if not cached. |
guildId | string | null | Yes | No | |
messageId | string | Yes | No |
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