1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 08:10:18 +00:00
musix-oss/src/commands/disconnect.js

16 lines
564 B
JavaScript
Raw Normal View History

2020-02-05 20:02:53 +00:00
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!');
}
}
};