diff options
Diffstat (limited to 'src/model/channel/reaction.rs')
| -rw-r--r-- | src/model/channel/reaction.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/model/channel/reaction.rs b/src/model/channel/reaction.rs index 132af7b..fbc02ad 100644 --- a/src/model/channel/reaction.rs +++ b/src/model/channel/reaction.rs @@ -8,6 +8,26 @@ use ::CACHE; #[cfg(feature="model")] use ::http; +/// An emoji reaction to a message. +#[derive(Clone, Debug, Deserialize)] +pub struct Reaction { + /// The [`Channel`] of the associated [`Message`]. + /// + /// [`Channel`]: enum.Channel.html + /// [`Message`]: struct.Message.html + pub channel_id: ChannelId, + /// The reactive emoji used. + pub emoji: ReactionType, + /// The Id of the [`Message`] that was reacted to. + /// + /// [`Message`]: struct.Message.html + pub message_id: MessageId, + /// The Id of the [`User`] that sent the reaction. + /// + /// [`User`]: struct.User.html + pub user_id: UserId, +} + #[cfg(feature="model")] impl Reaction { /// Deletes the reaction, but only if the current user is the user who made |