This commit is contained in:
Dragon Fire
2021-03-09 19:54:30 -05:00
parent 8faf645f60
commit 800d927998
+1 -1
View File
@@ -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;