emit playlist add for soundcloud as well
This commit is contained in:
parent
81843d42df
commit
c713401a97
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ 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.PLAYLIST_ADD, message, queue, res);
|
||||||
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
|
||||||
this._addTracksToQueue(message, res.tracks);
|
this._addTracksToQueue(message, res.tracks);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue