#[non_exhaustive]pub struct MessageReactionAdd {
pub user_id: UserId,
pub channel_id: ChannelId,
pub message_id: MessageId,
pub guild_id: Option<GuildId>,
pub member: Option<Box<Member>>,
pub emoji: PartialEmoji,
pub message_author_id: Option<UserId>,
pub burst: bool,
pub burst_colors: Vec<CompactString>,
pub kind: ReactionType,
}Expand description
The data of the Message Reaction Add dispatch event.
discord.js counterpart: the MessageReactionAdd event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_id: UserIdThe user who reacted.
channel_id: ChannelIdThe message’s channel.
message_id: MessageIdThe message.
guild_id: Option<GuildId>The message’s guild.
member: Option<Box<Member>>The member who reacted (guild reactions).
emoji: PartialEmojiThe emoji.
The author of the message.
burst: boolWhether this is a super reaction.
burst_colors: Vec<CompactString>The super reaction’s animation colors (#rrggbb).
kind: ReactionTypeThe kind of reaction.
Trait Implementations§
Source§impl Clone for MessageReactionAdd
impl Clone for MessageReactionAdd
Source§impl Debug for MessageReactionAdd
impl Debug for MessageReactionAdd
Source§impl<'de> Deserialize<'de> for MessageReactionAdd
impl<'de> Deserialize<'de> for MessageReactionAdd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageReactionAdd
Source§impl PartialEq for MessageReactionAdd
impl PartialEq for MessageReactionAdd
Source§impl Serialize for MessageReactionAdd
impl Serialize for MessageReactionAdd
impl StructuralPartialEq for MessageReactionAdd
Auto Trait Implementations§
impl Freeze for MessageReactionAdd
impl RefUnwindSafe for MessageReactionAdd
impl Send for MessageReactionAdd
impl Sync for MessageReactionAdd
impl Unpin for MessageReactionAdd
impl UnsafeUnpin for MessageReactionAdd
impl UnwindSafe for MessageReactionAdd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more