From fda820432f6bbf84c3b987bda0269e6855eeceb6 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Thu, 23 Jul 2020 08:03:45 +0200 Subject: [PATCH] :bug: clearQueue() method now clears all the tracks --- src/Player.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Player.js b/src/Player.js index 42a7154..c3d19f3 100644 --- a/src/Player.js +++ b/src/Player.js @@ -553,8 +553,7 @@ class Player { const queue = this.queues.find((g) => g.guildID === guildID) if (!queue) return reject(new Error('Not playing')) // Clear queue - const currentlyPlaying = queue.tracks.shift() - queue.tracks = [currentlyPlaying] + queue.tracks = [] // Resolve guild queue resolve(queue) })