1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +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);
return msg.channel.send(client.messages.stop);
}
if (!queue || !queue.playing) {
return msg.channel.send(client.messages.noServerQueue);
}
queue.songs = [];
queue.looping = false;
queue.endReason = "stop";

View File

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