1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-07 01:20:48 +00:00

Update 3.6

This commit is contained in:
MatteZ02
2020-06-09 21:25:55 +03:00
parent a0662fdf90
commit 635d7953b2
9 changed files with 96 additions and 22 deletions

View File

@ -9,11 +9,20 @@ module.exports = {
execute(msg, args, client, Discord, command) {
const queue = client.queue.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
if (msg.content.contains("-force")) {
if (queue) {
queue.voiceChannel.leave();
queue.exists = false;
}
if (msg.guild.voice.channel) msg.guild.voice.channel.leave();
client.queue.delete(guild.id);
return msg.channel.send(client.messages.stop);
}
queue.songs = [];
queue.looping = false;
queue.endReason = "stop";
queue.connection.dispatcher.end();
msg.channel.send(client.messages.stop)
msg.channel.send(client.messages.stop);
}
}
};