diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 1ebda6c..0525643 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -628,11 +628,11 @@ class Queue { const hasCustomDownloader = typeof this.onBeforeCreateStream === "function"; if (["youtube", "spotify", "soundcloud"].includes(track.raw.source)) { - let spotifyResolved = false; if (track.raw.source === "spotify" && !track.raw.engine) { - track.raw.engine = await play.search(`${track.author} ${track.title}`, { limit: 5 }) - .then(res => res[0].url) + track.raw.engine = await play + .search(`${track.author} ${track.title}`, { limit: 5 }) + .then((res) => res[0].url) .catch(Util.noop); spotifyResolved = true; }