Fix delay time

This commit is contained in:
Dragon Fire
2021-03-09 20:00:46 -05:00
parent bb8f58b3d4
commit 4462d80df2
+1 -1
View File
@@ -122,7 +122,7 @@ module.exports = class GuessSongCommand extends Command {
}) })
.send('grant_type=client_credentials'); .send('grant_type=client_credentials');
this.token = body.access_token; this.token = body.access_token;
setTimeout(() => { this.token = null; }, body.expires_in); setTimeout(() => { this.token = null; }, body.expires_in * 1000);
return body; return body;
} }
}; };