From 9fcf9a86d84a80b919a8e4369a12d720ca26ecb5 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sun, 20 Jun 2021 13:21:16 +0545 Subject: [PATCH] prettier --- src/Structures/Queue.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 6404d21..f744941 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -258,7 +258,7 @@ class Queue { if (!this.playing || !this.current) return false; if (position < 1) position = 0; if (position >= this.current.durationMS) return this.skip(); - + await this.play(this.current, { immediate: true, filtersUpdate: true, // to stop events @@ -361,11 +361,14 @@ class Queue { if (this.options.leaveOnEnd) this.destroy(); return void this.player.emit("queueEnd", this); } - const info = await ytdl.getInfo(track.url).then(x => x.related_videos[0]).catch(() => {}); + const info = await ytdl + .getInfo(track.url) + .then((x) => x.related_videos[0]) + .catch(() => {}); if (!info) { if (this.options.leaveOnEnd) this.destroy(); return void this.player.emit("queueEnd", this); - }; + } const nextTrack = new Track(this.player, { title: info.title,