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();