chore(prettier): format code
This commit is contained in:
parent
8c61b88956
commit
d27b9f8180
2 changed files with 16 additions and 14 deletions
|
@ -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,7 +322,8 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
|
|||
});
|
||||
|
||||
for (const video of ytpl) {
|
||||
playlist.tracks.push(new Track(this, {
|
||||
playlist.tracks.push(
|
||||
new Track(this, {
|
||||
title: video.title,
|
||||
description: video.description,
|
||||
author: video.channel?.name,
|
||||
|
@ -333,7 +334,8 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
|
|||
duration: video.durationFormatted,
|
||||
raw: video,
|
||||
playlist: playlist
|
||||
}));
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue