Voice Server Update Payload (incoming/voice_server_update.rs)

twilight · twilight-model/src/gateway/payload/incoming/voice_server_update.rs · rust · ISC
voice, chat, realtime, lang:rust, tag:payload

Rust struct representing Discord voice server update gateway events, including endpoint and authentication token. Reuse in voice communication systems handling Discord gateway payloads.

// Source: https://github.com/twilight-rs/twilight | License: ISC | Copyright 2019 (c) The Twilight Contributors
// Provided via justclaw.it.com; keep this notice with the code.
use crate::id::{Id, marker::GuildMarker};
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct VoiceServerUpdate {
    /// Discord voice server endpoint.
    pub endpoint: Option<String>,
    pub guild_id: Id<GuildMarker>,
    /// Voice authentication token to connect to the Discord voice server.
    pub token: String,
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key