Add Stage Instance and Voice State

This commit is contained in:
kozabrada123 2023-05-13 22:01:04 +02:00
parent 7069a9e1e6
commit ae1271d828
1 changed files with 30 additions and 0 deletions

View File

@ -815,6 +815,36 @@ pub struct IntegrationAccount {
pub name: String pub name: String
} }
#[derive(Default, Debug, Deserialize, Serialize, Clone)]
/// See https://discord.com/developers/docs/resources/voice#voice-state-object
pub struct VoiceStateObject {
pub guild_id: Option<String>,
pub channel_id: Option<String>,
pub user_id: String,
pub member: Option<GuildMember>,
pub session_id: String,
pub deaf: bool,
pub mute: bool,
pub self_deaf: bool,
pub self_mute: bool,
pub self_stream: Option<bool>,
pub self_video: bool,
pub suppress: bool,
pub request_to_speak_timestamp: DateTime<Utc>
}
#[derive(Default, Debug, Deserialize, Serialize, Clone)]
/// See https://discord.com/developers/docs/resources/stage-instance#stage-instance-object
pub struct StageInstance {
pub id: String,
pub guild_id: String,
pub channel_id: String,
pub topic: String,
pub privacy_level: u8,
pub discoverable_disabled: bool,
pub guild_scheduled_event_id: Option<String>
}
#[derive(Debug, Deserialize, Serialize, Clone)] #[derive(Debug, Deserialize, Serialize, Clone)]
pub struct DefaultReaction { pub struct DefaultReaction {
pub emoji_id: Option<String>, pub emoji_id: Option<String>,