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