1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};
use crate::events::WebSocketEvent;

#[derive(Debug, Deserialize, Serialize, Default)]
/// See https://discord.com/developers/docs/topics/gateway-events#update-voice-state-gateway-voice-state-update-structure
pub struct GatewayVoiceStateUpdate {
    pub guild_id: String,
    pub channel_id: Option<String>,
    pub self_mute: bool,
    pub self_deaf: bool,
}

impl WebSocketEvent for GatewayVoiceStateUpdate {}