pub struct ReactionEvent {
pub thread_id: String,
pub message_id: String,
pub user: Author,
pub emoji: EmojiValue,
pub added: bool,
pub adapter_name: String,
}Expand description
A reaction was added to or removed from a message.
Fields§
§thread_id: StringThread containing the reacted message.
message_id: StringThe message that was reacted to.
user: AuthorThe user who added or removed the reaction.
emoji: EmojiValueThe emoji used for the reaction.
added: booltrue when the reaction was added, false when removed.
adapter_name: StringName of the adapter that delivered this event.
Trait Implementations§
Source§impl Clone for ReactionEvent
impl Clone for ReactionEvent
Source§fn clone(&self) -> ReactionEvent
fn clone(&self) -> ReactionEvent
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 moreAuto Trait Implementations§
impl Freeze for ReactionEvent
impl RefUnwindSafe for ReactionEvent
impl Send for ReactionEvent
impl Sync for ReactionEvent
impl Unpin for ReactionEvent
impl UnsafeUnpin for ReactionEvent
impl UnwindSafe for ReactionEvent
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