chore(prettier): format code

This commit is contained in:
Snowflake107 2021-06-14 12:30:03 +05:45
parent 8c61b88956
commit d27b9f8180
2 changed files with 16 additions and 14 deletions

View file

@ -260,7 +260,7 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
return { playlist: playlist, tracks: playlist.tracks }; return { playlist: playlist, tracks: playlist.tracks };
} }
case QueryType.SOUNDCLOUD_PLAYLIST: { case QueryType.SOUNDCLOUD_PLAYLIST: {
const data = await SoundCloud.getPlaylist(query).catch(() => { }); const data = await SoundCloud.getPlaylist(query).catch(() => {});
if (!data) return { playlist: null, tracks: [] }; if (!data) return { playlist: null, tracks: [] };
const res = new Playlist(this, { const res = new Playlist(this, {
@ -322,7 +322,8 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
}); });
for (const video of ytpl) { for (const video of ytpl) {
playlist.tracks.push(new Track(this, { playlist.tracks.push(
new Track(this, {
title: video.title, title: video.title,
description: video.description, description: video.description,
author: video.channel?.name, author: video.channel?.name,
@ -333,7 +334,8 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
duration: video.durationFormatted, duration: video.durationFormatted,
raw: video, raw: video,
playlist: playlist playlist: playlist
})); })
);
} }
} }
default: default: