1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 10:46:01 +00:00
This commit is contained in:
MatteZ02
2020-02-05 22:02:53 +02:00
commit d343af3b14
49 changed files with 1248 additions and 0 deletions

View File

@ -0,0 +1,16 @@
module.exports = {
name: 'disconnect',
alias: 'dc',
usage: 'disconnect',
description: 'Disconnect the bot from a voice channel.',
onlyDev: false,
permission: 'MANAGE_CHANNELS',
category: 'util',
async execute(msg, args, client, Discord, prefix, command) {
const serverQueue = client.queue.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
serverQueue.voiceChannel.leave();
msg.channel.send('<:green_check_mark:674265384777416705> Left the voice channel!');
}
}
};