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
guildIdulongThe id of the guild the voice state belongs to.
voiceStateDiscordVoiceStateThe 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
VoiceState
The voice state of the current user after the change.
public DiscordVoiceState VoiceState { get; }