From 800d927998b8c9212ed07397e2c1479e42bc3f72 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 9 Mar 2021 19:54:30 -0500 Subject: [PATCH] Fix --- commands/games-sp/guess-song.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/guess-song.js b/commands/games-sp/guess-song.js index 051f1137..236f17c6 100644 --- a/commands/games-sp/guess-song.js +++ b/commands/games-sp/guess-song.js @@ -117,7 +117,7 @@ module.exports = class GuessSongCommand extends Command { const { body } = await request .post('https://accounts.spotify.com/api/token') .set({ Authorization: `Basic ${base64(`${SPOTIFY_KEY}:${SPOTIFY_SECRET}`)}` }) - .send('grant_type=client_credentials'); + .attach('grant_type', 'client_credentials'); this.token = body.access_token; setTimeout(() => { this.token = null; }, body.expires_in); return body;