From 35fd4e663b33e2288590141000f0528cc7772878 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 20 Feb 2021 15:54:45 +0100 Subject: [PATCH] :bug: Fix loop mode Closes #277 --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 9ffffce..21150f6 100644 --- a/src/Player.js +++ b/src/Player.js @@ -1130,7 +1130,7 @@ class Player extends EventEmitter { async _playTrack (queue, firstPlay) { if (queue.stopped) return // If there isn't next music in the queue - if (queue.tracks.length === 1 && !queue.repeatMode && !firstPlay) { + if (queue.tracks.length === 1 && !queue.loopMode && !queue.repeatMode && !firstPlay) { // Leave the voice channel if (this.options.leaveOnEnd && !queue.stopped) { // Remove the guild from the guilds list