From e0c30e985309a4b636aa1c699ad4be105e6fb5ab Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:28:50 +0530 Subject: [PATCH] Update index.ts --- play-dl/Spotify/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play-dl/Spotify/index.ts b/play-dl/Spotify/index.ts index f538450..5544035 100644 --- a/play-dl/Spotify/index.ts +++ b/play-dl/Spotify/index.ts @@ -147,7 +147,7 @@ export async function SpotifyAuthorize(data: SpotifyDataOptions, file: boolean): * * Update token if returned false. * ```ts - * if (!play.is_expired()) { + * if (play.is_expired()) { * await play.refreshToken() * } * ``` @@ -208,7 +208,7 @@ export async function sp_search( * Refreshes Token * * ```ts - * if (!play.is_expired()) { + * if (play.is_expired()) { * await play.refreshToken() * } * ```