pub struct MessageReactionAddEvent<'a> {
pub user_id: Snowflake,
pub channel_id: Snowflake,
pub message_id: Snowflake,
pub guild_id: Option<Snowflake>,
pub member: Option<GuildMember<'a>>,
pub emoji: ReactionEmoji<'a>,
pub message_author_id: Option<Snowflake>,
pub burst: bool,
pub burst_colors: Vec<String>,
pub reaction_type: u8,
}Expand description
Event data for MESSAGE_REACTION_ADD.
Fields§
§user_id: SnowflakeID of the user.
channel_id: SnowflakeID of the channel.
message_id: SnowflakeID of the message.
guild_id: Option<Snowflake>ID of the guild.
member: Option<GuildMember<'a>>Member who reacted if in a guild.
emoji: ReactionEmoji<'a>The emoji used to react.
ID of the user who authored the message.
burst: boolWhether this is a super-reaction.
burst_colors: Vec<String>Colors used for super-reaction animation (hex format).
reaction_type: u8The type of reaction.
Trait Implementations§
Source§impl<'a> Clone for MessageReactionAddEvent<'a>
impl<'a> Clone for MessageReactionAddEvent<'a>
Source§fn clone(&self) -> MessageReactionAddEvent<'a>
fn clone(&self) -> MessageReactionAddEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MessageReactionAddEvent<'a>
impl<'a> Debug for MessageReactionAddEvent<'a>
Source§impl<'de, 'a> Deserialize<'de> for MessageReactionAddEvent<'a>
impl<'de, 'a> Deserialize<'de> for MessageReactionAddEvent<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for MessageReactionAddEvent<'a>
impl<'a> RefUnwindSafe for MessageReactionAddEvent<'a>
impl<'a> Send for MessageReactionAddEvent<'a>
impl<'a> Sync for MessageReactionAddEvent<'a>
impl<'a> Unpin for MessageReactionAddEvent<'a>
impl<'a> UnwindSafe for MessageReactionAddEvent<'a>
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