This field determines the channel id for the current user's voice connection.
If set to a valid channel id within the guild, the bot will connect to it. If a new voice session was created, a VOICE_SERVER_UPDATE event will be received with the voice server's connection details.
If set to null, the bot user will disconnect it's voice session.
Set to true
if the bot user should be self-deafened upon joining the channel.
Deafened means the bot user will not receive any audio.
Default: false
Set to true
if the bot user should be self-muted upon joining the channel.
Muted means the bot user will not be able to broadcast audio.
Default: false
Generated using TypeDoc
A bot's guild-based voice state can be updated with the following options. Used with discord.Guild.setOwnVoiceState.