mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
16 lines
564 B
JavaScript
16 lines
564 B
JavaScript
|
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!');
|
||
|
}
|
||
|
}
|
||
|
};
|