Skip to main content
Version: v3.0.0 (current)

PlayerVoiceState

export interface PlayerVoiceState {
/** The voice server update, once Discord sent it. */
event?: VoiceServer;
/** The session id of the bot's voice state. */
sessionId?: string;
/** The voice channel the bot is in. */
channelId?: string;
}

The voice state a player keeps for its node. player.voiceState is private in 3.0.0 and player.setVoiceState() is removed: it holds the voice token, and only magmastream needs it. For the channel the bot is in, read player.voiceChannelId. The voice state is no longer saved with the player state. The op and guildId fields, left over from the Lavalink v3 protocol, are removed.