Table of Contents

Class VoiceStateUpdatedEventArgs

Namespace
Nyra.Abstractions
Assembly
Nyra.dll

The voice state of the current user changed in a guild.

public sealed class VoiceStateUpdatedEventArgs : EventArgs
Inheritance
VoiceStateUpdatedEventArgs
Inherited Members

Remarks

The channel id is wire-sourced on NetCord and the DSharpPlus 5.0 nightly line, cache-derived on DSharpPlus 4.x and Discord.Net, a null channel id there also covers a channel their cache has not resolved, indistinguishable from a leave.

Constructors

VoiceStateUpdatedEventArgs(ulong, DiscordVoiceState)

Initializes the event args with the reported values.

public VoiceStateUpdatedEventArgs(ulong guildId, DiscordVoiceState voiceState)

Parameters

guildId ulong

The id of the guild the voice state belongs to.

voiceState DiscordVoiceState

The voice state of the current user after the change.

Properties

GuildId

The id of the guild the voice state belongs to.

public ulong GuildId { get; }

Property Value

ulong

VoiceState

The voice state of the current user after the change.

public DiscordVoiceState VoiceState { get; }

Property Value

DiscordVoiceState