Interface: VoiceState
warning
⚠️ There are two different interfaces named VoiceState used in different parts of the system:
- One from Discord, received through the gateway.
- One used internally by the Lavalink client to propagate voice connection updates.
VoiceState (Discord Gateway)
Payload received from Discord's
VOICE_STATE_UPDATEevent.
Property Type Description Optional guild_idstring ID of the guild the voice state belongs to. user_idstring ID of the user whose voice state is updated. session_idstring Session ID used to identify the voice connection. channel_idstring ID of the voice channel the user is connected to (or nullif disconnected).
VoiceState (Lavalink Internal)
Internal structure used by the Lavalink manager to send voice update payloads to the node.
Property Type Description Optional opstring = "voiceUpdate" Operation type for the internal update. guildIdstring The guild ID associated with the voice update. eventVoiceServerThe voice server event containing endpoint and token. sessionIdstring The session ID for the voice connection.