discord js bot leave voice channel

JavaScript
client.leaveVoiceChannel(message.member.voiceState.channelID);
message.channel.createMessage(`Thanks for tuning in!`);
 
Source

Also in JavaScript: