blob: 09d5d7c35f770146838c959c9c9d0434508bdd3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
}
|