From 03e9a275aec30eebb0d99f3455235274108fffb6 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 13 Sep 2022 21:20:35 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Structures/Queue.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index c1ee1ff..f6f14c6 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -711,10 +711,11 @@ class Queue { // source: "youtube" // }); let info = await YouTube.getVideo(track.url) - .then(x => x.videos[0]) + .then((x) => x.videos[0]) .catch(Util.noop); - if (!info) info = await YouTube.search(track.author) - .then(x => x[0]) + if (!info) + info = await YouTube.search(track.author) + .then((x) => x[0]) .catch(Util.noop); if (!info) { if (this.options.leaveOnEnd) this.destroy();