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 };
}
case QueryType.SOUNDCLOUD_PLAYLIST: {
const data = await SoundCloud.getPlaylist(query).catch(() => { });
const data = await SoundCloud.getPlaylist(query).catch(() => {});
if (!data) return { playlist: null, tracks: [] };
const res = new Playlist(this, {
@ -322,18 +322,20 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
});
for (const video of ytpl) {
playlist.tracks.push(new Track(this, {
title: video.title,
description: video.description,
author: video.channel?.name,
url: video.url,
requestedBy: options.requestedBy,
thumbnail: video.thumbnail?.displayThumbnailURL("maxresdefault"),
views: video.views,
duration: video.durationFormatted,
raw: video,
playlist: playlist
}));
playlist.tracks.push(
new Track(this, {
title: video.title,
description: video.description,
author: video.channel?.name,
url: video.url,
requestedBy: options.requestedBy,
thumbnail: video.thumbnail?.displayThumbnailURL("maxresdefault"),
views: video.views,
duration: video.durationFormatted,
raw: video,
playlist: playlist
})
);
}
}
default:

View file

@ -67,7 +67,7 @@ class Queue<T = unknown> {
this.connection.on("debug", (msg) => this.player.emit("debug", this, msg));
this.player.emit("connectionCreate", this, this.connection);
return this;
}