Skip to content

Reaction Events

Note

The following classes come from the discord.events.reaction_events module.


ReactionAddEvent dataclass

Reaction added event.

user_id: int instance-attribute

ID of user who added the emoji.

emoji: EmojiModel instance-attribute

Emoji used to react.

channel_id: int instance-attribute

ID of the channel where the reaction took place.

message_id: int instance-attribute

ID of the message where the reaction took place.

guild_id: Optional[int] instance-attribute

ID of the guild where the reaction took place (if in a guild).

burst: bool instance-attribute

Whether the emoji is super.

member: Optional[MemberModel] instance-attribute

Partial member object of the guild member that added the emoji (if in a guild).

message_author_id: Optional[int] instance-attribute

ID of the user who sent the message where the reaction was added.


ReactionRemoveEvent dataclass

Reaction removed event.

user_id: int instance-attribute

ID of user who removed their reaction.

emoji: EmojiModel instance-attribute

Emoji data of the emoji where the reaction was removed.

channel_id: int instance-attribute

ID of the channel where the reaction was removed.

message_id: int instance-attribute

ID of the message where the reaction was removed.

guild_id: Optional[int] instance-attribute

ID of the guild where the reaction was removed (if in a guild).

burst: bool instance-attribute

If the emoji of the removed reaction is super.


ReactionRemoveAllEvent

Remove all reactions event.

channel_id: int instance-attribute

ID of the channel where all reaction were removed.

message_id: int instance-attribute

ID of the message where all reaction were removed.

guild_id: Optional[int] instance-attribute

ID of the guild where all reaction were removed (if in a guild).


ReactionRemoveEmojiEvent dataclass

All reactions of a specific emoji removed.

emoji: EmojiModel instance-attribute

Emoji data of the removed reaction emoji.

channel_id: int instance-attribute

ID of the channel where the reaction emoji was removed.

message_id: int instance-attribute

ID of the message where the reaction emoji was removed.

guild_id: Optional[int] instance-attribute

ID of the guild where the reaction emoji was removed. (if in a guild)


ReactionType

Reaction types.

NORMAL = 0 class-attribute instance-attribute

A standard emoji.

BURST = 1 class-attribute instance-attribute

A super emoji.