hikari.events.reaction_events#
Events that fire if messages are reacted to.
DMReactionAddEvent #
Bases: DMReactionEvent, ReactionAddEvent
Event fired when a reaction is added to a private message.
app class-attribute instance-attribute #
App instance for this application.
burst_colors class-attribute instance-attribute #
The colours used for the super reaction animation, empty if this is not a super reaction.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was added if known.
This can either be the string name of the custom emoji which was added, the object of the hikari.emojis.UnicodeEmoji which was added or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
is_animated class-attribute instance-attribute #
Whether the emoji which was added is animated.
is_burst class-attribute instance-attribute #
Whether the reaction which was added is a super reaction.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
DMReactionDeleteAllEvent #
Bases: DMReactionEvent, ReactionDeleteAllEvent
Event fired when all of a private message's reactions are removed.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
DMReactionDeleteEmojiEvent #
Bases: DMReactionEvent, ReactionDeleteEmojiEvent
Event fired when all reactions of a certain emoji is removed from a private message.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
DMReactionDeleteEvent #
Bases: DMReactionEvent, ReactionDeleteEvent
Event fired when a reaction is removed from a private message.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
is_burst class-attribute instance-attribute #
Whether the reaction which was removed was a super reaction.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
DMReactionEvent #
GuildReactionAddEvent #
Bases: GuildReactionEvent, ReactionAddEvent
Event fired when a reaction is added to a guild message.
burst_colors class-attribute instance-attribute #
The colours used for the super reaction animation, empty if this is not a super reaction.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was added if known.
This can either be the string name of the custom emoji which was added, the object of the hikari.emojis.UnicodeEmoji which was added or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
is_animated class-attribute instance-attribute #
Whether the emoji which was added is animated.
is_burst class-attribute instance-attribute #
Whether the reaction which was added is a super reaction.
member class-attribute instance-attribute #
Member that added the reaction.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
GuildReactionDeleteAllEvent #
Bases: GuildReactionEvent, ReactionDeleteAllEvent
Event fired when all of a guild message's reactions are removed.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
guild_id class-attribute instance-attribute #
ID of the guild that this event concerns.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
GuildReactionDeleteEmojiEvent #
Bases: GuildReactionEvent, ReactionDeleteEmojiEvent
Event fired when all reactions of a certain emoji is removed from a guild message.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
guild_id class-attribute instance-attribute #
ID of the guild that this event concerns.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
GuildReactionDeleteEvent #
Bases: GuildReactionEvent, ReactionDeleteEvent
Event fired when a reaction is removed from a guild message.
app class-attribute instance-attribute #
App instance for this application.
channel_id class-attribute instance-attribute #
ID of the channel that this event concerns.
emoji_id class-attribute instance-attribute #
ID of the emoji which was added if it is custom, else None.
emoji_name class-attribute instance-attribute #
emoji_name: str | UnicodeEmoji | None = attrs.field()
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
guild_id class-attribute instance-attribute #
ID of the guild that this event concerns.
is_burst class-attribute instance-attribute #
Whether the reaction which was removed was a super reaction.
message_id class-attribute instance-attribute #
ID of the message that this event concerns.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
GuildReactionEvent #
Bases: ReactionEvent, ABC
Event base for any reaction-bound event in guild messages.
ReactionAddEvent #
Bases: ReactionEvent, ABC
Event base for any reaction that is added to a message.
burst_colors abstractmethod property #
The colours used for the super reaction animation, empty if this is not a super reaction.
emoji_id abstractmethod property #
emoji_id: Snowflake | None
ID of the emoji which was added if it is custom, else None.
emoji_name abstractmethod property #
emoji_name: UnicodeEmoji | str | None
Name of the emoji which was added if known.
This can either be the string name of the custom emoji which was added, the object of the hikari.emojis.UnicodeEmoji which was added or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
is_animated abstractmethod property #
is_animated: bool
Whether the emoji which was added is animated.
ReactionDeleteAllEvent #
ReactionDeleteEmojiEvent #
Bases: ReactionEvent, ABC
Event base fired when all reactions are removed for one emoji.
emoji_id abstractmethod property #
emoji_id: Snowflake | None
ID of the emoji which was added if it is custom, else None.
emoji_name abstractmethod property #
emoji_name: UnicodeEmoji | str | None
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
ReactionDeleteEvent #
Bases: ReactionEvent, ABC
Event base for any single reaction that is removed from a message.
emoji_id abstractmethod property #
emoji_id: Snowflake | None
ID of the emoji which was added if it is custom, else None.
emoji_name abstractmethod property #
emoji_name: UnicodeEmoji | str | None
Name of the emoji which was removed.
Either the string name of the custom emoji which was removed, the object of the hikari.emojis.UnicodeEmoji which was removed or None when the relevant custom emoji's data is not available (e.g. the emoji has been deleted).
is_burst abstractmethod property #
is_burst: bool
Whether the reaction which was removed was a super reaction.