From ffacf1c8fc820de3890ba6231b644e9e4a65ce28 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 14 Apr 2022 13:06:54 -0400 Subject: FLAKE --- src/models.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/models.rs') diff --git a/src/models.rs b/src/models.rs index 431204a..09d5d7c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,9 +1,19 @@ +/** + * Describes a Reaction Role as it appears in SQL + */ #[derive(Debug, Clone)] pub struct ReactionRole { + /// The primary key pub id: i32, + /// The ID of the channel where the menu is kept, turned into a String for ease of storage pub channel_id: String, + /// The ID of the message within the channel containing the reaction menu pub message_id: String, + /// The ID of the guild containing the channel pub guild_id: String, + /// The String representation of the reaction, either as a unicode Emoji or a discord custom + /// emoji ID pub reaction: String, + /// The ID of the role to be toggled by the menu option pub role_id: String, } -- cgit v1.2.3