Table of Contents

Struct VoiceServer

Namespace
Nyra.Abstractions
Assembly
Nyra.dll

A Discord voice server the audio node connects to on the bot's behalf for a guild.

public readonly record struct VoiceServer : IEquatable<VoiceServer>
Implements
Inherited Members

Remarks

The values are always the complete pair, the core discards a partial update (a blank endpoint or token) before it reaches a handshake. A default instance bypasses the members' annotations and carries nulls, the same filters treat it as partial.

Constructors

VoiceServer(string, string)

A Discord voice server the audio node connects to on the bot's behalf for a guild.

public VoiceServer(string Token, string Endpoint)

Parameters

Token string

The token that authenticates the voice connection the audio node opens.

Endpoint string

The address of the voice server, the bare host Discord reports, with no scheme or port.

Remarks

The values are always the complete pair, the core discards a partial update (a blank endpoint or token) before it reaches a handshake. A default instance bypasses the members' annotations and carries nulls, the same filters treat it as partial.

Properties

Endpoint

The address of the voice server, the bare host Discord reports, with no scheme or port.

public string Endpoint { get; init; }

Property Value

string

Token

The token that authenticates the voice connection the audio node opens.

public string Token { get; init; }

Property Value

string