Add Stage Instance and Voice State
This commit is contained in:
parent
4e51d1251b
commit
a93962b667
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue