From 72ff4cad5644ac87edac8dfb1131fe74eca1262a Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 8 Jun 2020 14:09:52 +0300 Subject: [PATCH] Update getSpotifyKey.js --- src/struct/funcs/getSpotifyKey.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/struct/funcs/getSpotifyKey.js b/src/struct/funcs/getSpotifyKey.js index fe8b94e5..4c7e6493 100644 --- a/src/struct/funcs/getSpotifyKey.js +++ b/src/struct/funcs/getSpotifyKey.js @@ -1,8 +1,8 @@ module.exports = async function (client) { - var request = require("request"); + const request = require("request"); - var refresh_token = client.config.spotify_refresh_token; - var authOptions = { + const refresh_token = client.config.spotify_refresh_token; + const authOptions = { url: "https://accounts.spotify.com/api/token", headers: { Authorization: "Basic " +