emit playlist add for soundcloud as well

This commit is contained in:
Snowflake107 2021-04-30 21:54:00 +05:45
parent 81843d42df
commit c713401a97

View file

@ -324,6 +324,7 @@ 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.PLAYLIST_ADD, message, queue, res);
this.emit(PlayerEvents.TRACK_START, message, queue.tracks[0], queue);
this._addTracksToQueue(message, res.tracks);
}