twilight_model/gateway/payload/incoming/
voice_server_update.rs

1use crate::id::{marker::GuildMarker, Id};
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
5pub struct VoiceServerUpdate {
6    /// Discord voice server endpoint.
7    pub endpoint: Option<String>,
8    pub guild_id: Id<GuildMarker>,
9    /// Voice authentication token to connect to the Discord voice server.
10    pub token: String,
11}