Table of Contents

Class VoiceServerUpdatedEventArgs

Namespace
Nyra.Abstractions
Assembly
Nyra.dll

The voice server of a guild was allocated or re-targeted.

public sealed class VoiceServerUpdatedEventArgs : EventArgs
Inheritance
VoiceServerUpdatedEventArgs
Inherited Members

Remarks

The contract is a complete update, the bridge raises it only with both the token and the endpoint present, a partial update (the undocumented null or blank variants) is discarded by the core instead of completing a handshake. The endpoint is the bare host Discord reports, with no scheme or port.

Constructors

VoiceServerUpdatedEventArgs(ulong, VoiceServer)

Initializes the event args with the reported values.

public VoiceServerUpdatedEventArgs(ulong guildId, VoiceServer voiceServer)

Parameters

guildId ulong

The id of the guild the voice server belongs to.

voiceServer VoiceServer

The new voice server credentials, a complete token and endpoint pair.

Properties

GuildId

The id of the guild the voice server belongs to.

public ulong GuildId { get; }

Property Value

ulong

VoiceServer

The new voice server credentials.

public VoiceServer VoiceServer { get; }

Property Value

VoiceServer