From 0b0dbea1290afc3bee7e013bb751319407a152b1 Mon Sep 17 00:00:00 2001 From: Olebeh Date: Mon, 10 Oct 2022 19:18:30 -0600 Subject: [PATCH] removed unnecessary code --- src/modules/Queue.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/Queue.ts b/src/modules/Queue.ts index 74ea411..45670f6 100644 --- a/src/modules/Queue.ts +++ b/src/modules/Queue.ts @@ -475,10 +475,6 @@ export class Queue { await this.connection.playStream(resource, this.volume) } else if (source === `spotify`) { - if (playdl.is_expired()) { - await playdl.refreshToken() - } - const sp_stream = await playdl.stream(await playdl.search(`${author} ${title}`, { source: { youtube: `video` } }).then(result => result[0].url), { seek: options?.seek }) const resource = this.connection.createStream(sp_stream.stream, { type: sp_stream.type, data: track })