emit PlaylistAdd before TrackStart

This commit is contained in:
Snowflake107 2021-05-10 15:45:13 +05:45
parent 29b54029e6
commit f27cf86038

View file

@ -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);
}