fix: youtube playlists being undefined
This commit is contained in:
parent
9e187a4d2b
commit
c6830f87c0
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue