diff options
author | Cara Salter <cara@devcara.com> | 2022-04-14 13:06:54 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-04-18 23:05:25 -0400 |
commit | ffacf1c8fc820de3890ba6231b644e9e4a65ce28 (patch) | |
tree | 475537cef44f8eb0e7ed1269fd8c76e700c62918 /src/models.rs | |
parent | 9b4707192557cdd64dd82c5883e54758d0d66512 (diff) | |
download | glitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.tar.gz glitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.zip |
FLAKE
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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, } |