mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 10:46:01 +00:00
Init
This commit is contained in:
16
src/commands/disconnect.js
Normal file
16
src/commands/disconnect.js
Normal 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!');
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user