Create a new PlayerVoiceState instance for a player.
The player structure to attach this voice instance to.
The voice channel id.
The voice server endpoint.
ReadonlyplayerReference to the player structure this voice instance belongs to.
The voice session id.
The voice server token.
Connect the player to its configured voice channel.
The player structure after connecting.
Toggle or set self deaf.
Whether to self deafen or not. Defaults to toggling the current state.
The player structure after updating deafen state.
Move the player to another voice channel.
The id of the voice channel to move to.
The player structure after moving.
Toggle or set self mute.
Whether to self mute or not. Defaults to toggling the current state.
The player structure after updating mute state.
Merge voice data from Lavalink or gateway updates.
The partial voice data to update with.
The current PlayerVoiceState instance after patching.
Send a voice state payload to the Discord gateway.
The voice state options to update. Only include fields that need to be updated, others will be kept as is.
Return the current voice values as a nullable payload.
The current voice data as a nullable LavalinkPlayerVoice payload.
Return a valid Lavalink voice payload when all required fields are present.
The Lavalink voice payload or null if required fields are missing.
The voice channel id.
The voice server endpoint.
The voice server session id.
The voice server token.
Class representing the voice connection and state of a player. PlayerVoiceState