This commit is contained in:
Dragon Fire
2021-05-01 15:44:02 -04:00
parent a9987f891b
commit 0683f58605
+1 -1
View File
@@ -89,7 +89,7 @@ module.exports = class GuessSongCommand extends Command {
async fetchCharts(playlist) {
if (this.charts.has(playlist)) return this.charts.get(playlist);
const { body } = await request
.get('https://spotifycharts.com/regional/us/daily/latest/download')
.get(`https://api.spotify.com/v1/playlists/${playlists[playlist]}/tracks`)
.set({ Authorization: `Bearer ${this.token}` })
.query({
market: 'US',