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:
parent
5a77443df6
commit
c3fcd8338b
@ -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";
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user