Add RoleCreateSchema

This commit is contained in:
bitfl0wer 2023-06-08 20:40:36 +02:00
parent 429db9332b
commit c31d2aa76d
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 12 additions and 0 deletions

View File

@ -12,3 +12,15 @@ pub struct GuildCreateSchema {
pub system_channel_id: Option<String>, pub system_channel_id: Option<String>,
pub rules_channel_id: Option<String>, pub rules_channel_id: Option<String>,
} }
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub struct RoleCreateSchema {
pub name: Option<String>,
pub permissions: Option<String>,
pub color: Option<u32>,
pub hoist: Option<bool>,
pub icon: Option<Vec<u8>>,
pub unicode_emoji: Option<String>,
pub mentionable: Option<bool>,
}