1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Chore 3.8.1

This commit is contained in:
MatteZ02 2020-07-04 23:06:54 +03:00
parent 5a77443df6
commit c3fcd8338b
2 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,9 @@ module.exports = {
client.queue.delete(msg.guild.id); client.queue.delete(msg.guild.id);
return msg.channel.send(client.messages.stop); return msg.channel.send(client.messages.stop);
} }
if (!queue || !queue.playing) {
return msg.channel.send(client.messages.noServerQueue);
}
queue.songs = []; queue.songs = [];
queue.looping = false; queue.looping = false;
queue.endReason = "stop"; queue.endReason = "stop";

View File

@ -1,7 +1,7 @@
module.exports = function (client, msg, command) { module.exports = function (client, msg, command) {
const queue = client.queue.get(msg.guild.id); const queue = client.queue.get(msg.guild.id);
const permissions = msg.channel.permissionsFor(msg.author); const permissions = msg.channel.permissionsFor(msg.author);
if (!queue || !queue.playing) { if (!queue || !queue.playing && command.name !== "stop") {
msg.channel.send(client.messages.noServerQueue); msg.channel.send(client.messages.noServerQueue);
return false; return false;
} }
@ -31,4 +31,4 @@ module.exports = function (client, msg, command) {
} else return true; } else return true;
} else return true; } else return true;
} else return true; } else return true;
}; };