From c713401a975ff931d6d1933fdd8a0b44e1d164eb Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Fri, 30 Apr 2021 21:54:00 +0545 Subject: [PATCH] emit playlist add for soundcloud as well --- src/Player.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.ts b/src/Player.ts index bb32690..66dd1c6 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -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); }