Class DiscordVoiceServerUpdatePayload
- Namespace
- DSharpPlus.VoiceLink.Payloads
- Assembly
- DSharpPlus.VoiceLink.dll
Sent when a guild's voice server is updated. This is sent when initially connecting to voice, and when the current voice instance fails over to a new server.
public sealed record DiscordVoiceServerUpdatePayload : IEquatable<DiscordVoiceServerUpdatePayload>
- Inheritance
-
DiscordVoiceServerUpdatePayload
- Implements
- Inherited Members
Properties
Endpoint
The voice server host. A null endpoint means that the voice server allocated has gone away and is trying to be reallocated. You should attempt to disconnect from the currently connected voice server, and not attempt to reconnect until a new voice server is allocated.
public required string? Endpoint { get; init; }
Property Value
GuildId
The guild this voice server update is for.
public required ulong GuildId { get; init; }
Property Value
Token
The voice connection token.
public required string Token { get; init; }