mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update queue.js
This commit is contained in:
parent
b83ee14cba
commit
5d34e80312
@ -7,7 +7,6 @@ module.exports = {
|
|||||||
async execute(message, args, client, Discord, prefix) {
|
async execute(message, args, client, Discord, prefix) {
|
||||||
const serverQueue = client.queue.get(message.guild.id);
|
const serverQueue = client.queue.get(message.guild.id);
|
||||||
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
|
||||||
if (!serverQueue.playing) return message.channel.send(':x: There is nothing playing.');
|
|
||||||
if (args[1]) {
|
if (args[1]) {
|
||||||
if (isNaN(args[1])) return msg.channel.send(':x: I\'m sorry, But you need to enter a valid __number__.');
|
if (isNaN(args[1])) return msg.channel.send(':x: I\'m sorry, But you need to enter a valid __number__.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user