polyphony_types/events/voice_status.rs
1use serde::{Deserialize, Serialize};
2use crate::events::WebSocketEvent;
3
4#[derive(Debug, Deserialize, Serialize, Default)]
5/// See https://discord.com/developers/docs/topics/gateway-events#update-voice-state-gateway-voice-state-update-structure
6pub struct GatewayVoiceStateUpdate {
7 pub guild_id: String,
8 pub channel_id: Option<String>,
9 pub self_mute: bool,
10 pub self_deaf: bool,
11}
12
13impl WebSocketEvent for GatewayVoiceStateUpdate {}