From f55cbcc61c4c6227d530c50c61d6c7792ec2a841 Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 1 Nov 2021 23:28:18 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80queue=20crashes=20when=20theres=20n?= =?UTF-8?q?othing=20playing.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug fixes: - Queue command crashed when nothing is playing, altho the / command of queue works as intended. --- commands/queue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/queue.js b/commands/queue.js index 6715535a4..4a342dd71 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -20,7 +20,7 @@ module.exports = { */ run: async (client, message, args, { GuildDB }) => { let player = await client.Manager.get(message.guild.id); - if (!player.queue.current) + if (!player) return client.sendTime( message.channel, "❌ | **Nothing is playing right now...**"