Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js leave voice channel

if(!message.guild.me.voice.channel) return message.channel.send("I'm not in a voice channel"); //If the bot is not in a voice channel, then return a message
message.guild.me.voice.channel.leave(); //Leave the voice channel
 
PREVIOUS NEXT
Tagged: #leave #voice #channel
ADD COMMENT
Topic
Name
9+5 =