mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 18:03:17 +00:00
Chore 3.8.1
This commit is contained in:
parent
5a77443df6
commit
c3fcd8338b
@ -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";
|
||||
|
@ -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;
|
||||
}
|
||||
@ -31,4 +31,4 @@ module.exports = function (client, msg, command) {
|
||||
} else return true;
|
||||
} else return true;
|
||||
} else return true;
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user