From f27cf860384872a99f98e41a2c73a1308eafe54f Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Mon, 10 May 2021 15:45:13 +0545 Subject: [PATCH] emit PlaylistAdd before TrackStart --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index 1a8d84e..be209e5 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -254,8 +254,8 @@ export class Player extends EventEmitter { const queue = (await this._createQueue(message, track).catch( (e) => void this.emit(PlayerEvents.ERROR, e, message) )) as Queue; - this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue); this.emit(PlayerEvents.PLAYLIST_ADD, message, queue, pl); + this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue); this._addTracksToQueue(message, tracks); }