diff --git a/src/Player.ts b/src/Player.ts index c91d60d..44f44f2 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -290,6 +290,10 @@ export class Player extends EventEmitter { // @ts-ignore playlist.requestedBy = message.author; + Object.defineProperty(playlist, "tracks", { + get: () => playlist.videos ?? [] + }); + this.emit(PlayerEvents.PLAYLIST_PARSE_END, playlist, message); // @ts-ignore