From 5602a4c360a2a6e8d566ba4540095df683aff315 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Mon, 10 May 2021 15:47:05 +0545 Subject: [PATCH] prettier --- src/Player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.ts b/src/Player.ts index be209e5..d10b4f0 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -241,7 +241,7 @@ export class Player extends EventEmitter { tracks, duration: tracks?.reduce((a, c) => a + (c?.durationMS ?? 0), 0) ?? 0, 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); @@ -292,7 +292,7 @@ export class Player extends EventEmitter { // @ts-ignore playlist.requestedBy = message.author; - Object.defineProperty(playlist, "tracks", { + Object.defineProperty(playlist, 'tracks', { get: () => playlist.videos ?? [] });