From 35dba3b137d57b8ffcdd777e7c62749b8c41c7ec Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 4 Jun 2020 13:41:37 +0300 Subject: [PATCH] Update play.js --- src/struct/funcs/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct/funcs/play.js b/src/struct/funcs/play.js index 51c6b376..3ae6ea91 100644 --- a/src/struct/funcs/play.js +++ b/src/struct/funcs/play.js @@ -13,7 +13,7 @@ module.exports = async function (guild, song, client, seek, play) { return; } setTimeout(() => { - if (!queue.playing) { + if (!queue.playing && queue) { queue.textChannel.send(client.messages.tookTooLong); queue.voiceChannel.leave(); client.queue.delete(guild.id);