From 806603c1b7d63fe7a04019d1bd4a45001c7bd6fe Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 26 Dec 2020 22:10:39 +0100 Subject: [PATCH] :bug: Fix queueEnd event --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 1cdfe69..9f5e85c 100644 --- a/src/Player.js +++ b/src/Player.js @@ -678,7 +678,7 @@ class Player extends EventEmitter { return queue.emit('musicStop') } // Emit end event - return queue.emit('queueEnd', queue.firstMessage, queue) + return this.emit('queueEnd', queue.firstMessage, queue) } // if the track needs to be the next one if (!queue.repeatMode && !firstPlay) queue.tracks.shift()