prettier
This commit is contained in:
parent
f27cf86038
commit
5602a4c360
1 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ export class Player extends EventEmitter {
|
||||||
tracks,
|
tracks,
|
||||||
duration: tracks?.reduce((a, c) => a + (c?.durationMS ?? 0), 0) ?? 0,
|
duration: tracks?.reduce((a, c) => a + (c?.durationMS ?? 0), 0) ?? 0,
|
||||||
thumbnail: playlist.images[0]?.url ?? tracks[0].thumbnail,
|
thumbnail: playlist.images[0]?.url ?? tracks[0].thumbnail,
|
||||||
title: playlist.title ?? playlist.name ?? ""
|
title: playlist.title ?? playlist.name ?? ''
|
||||||
};
|
};
|
||||||
|
|
||||||
this.emit(PlayerEvents.PLAYLIST_PARSE_END, pl, message);
|
this.emit(PlayerEvents.PLAYLIST_PARSE_END, pl, message);
|
||||||
|
@ -292,7 +292,7 @@ export class Player extends EventEmitter {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
playlist.requestedBy = message.author;
|
playlist.requestedBy = message.author;
|
||||||
|
|
||||||
Object.defineProperty(playlist, "tracks", {
|
Object.defineProperty(playlist, 'tracks', {
|
||||||
get: () => playlist.videos ?? []
|
get: () => playlist.videos ?? []
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue