From ea84785e31288dfa9d5636a408f693b249c0461a Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Fri, 26 Feb 2021 13:46:57 +0100 Subject: [PATCH] :sparkles: Emit playlistAdd even if it's playing --- src/Player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.js b/src/Player.js index 9ea41e1..53ac97d 100644 --- a/src/Player.js +++ b/src/Player.js @@ -545,6 +545,7 @@ class Player extends EventEmitter { } else { const track = playlist.tracks.shift() const queue = await this._createQueue(message, track).catch((e) => this.emit('error', e, message)) + this.emit('playlistAdd', message, queue, playlist) this.emit('trackStart', message, queue.tracks[0], queue) this._addTracksToQueue(message, playlist.tracks) }