emit PlaylistAdd before TrackStart
This commit is contained in:
parent
29b54029e6
commit
f27cf86038
1 changed files with 1 additions and 1 deletions
|
@ -254,8 +254,8 @@ export class Player extends EventEmitter {
|
||||||
const queue = (await this._createQueue(message, track).catch(
|
const queue = (await this._createQueue(message, track).catch(
|
||||||
(e) => void this.emit(PlayerEvents.ERROR, e, message)
|
(e) => void this.emit(PlayerEvents.ERROR, e, message)
|
||||||
)) as Queue;
|
)) as Queue;
|
||||||
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
|
||||||
this.emit(PlayerEvents.PLAYLIST_ADD, message, queue, pl);
|
this.emit(PlayerEvents.PLAYLIST_ADD, message, queue, pl);
|
||||||
|
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
||||||
this._addTracksToQueue(message, tracks);
|
this._addTracksToQueue(message, tracks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue