From 82cc16aaaf7bc88a9123a1e3320f7832a71744f4 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 26 Dec 2020 22:12:54 +0100 Subject: [PATCH] :bug: Fix clearQueue() method --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index c11fd7f..037e431 100644 --- a/src/Player.js +++ b/src/Player.js @@ -442,7 +442,7 @@ class Player extends EventEmitter { const queue = this.queues.get(message.guild.id) if (!queue) return this.emit('error', 'NotPlaying', message) // Clear queue - queue.tracks = [] + queue.tracks = queue.playing ? [queue.playing] : [] } /**