Skip to content

Commit

Permalink
Always use raw form on getRawWeeklyLeaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow authored Apr 6, 2022
1 parent bb15c74 commit 7ef1280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmariBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class AmariBot {
if (typeof guildId !== "string") throw new TypeError("guildId must be a string")
if (options.limit !== undefined && typeof options.limit !== "number") throw new TypeError("options.limit must be a number")

const data = await this._request(`/guild/${this.rawRoutes ? "raw/" : ""}weekly/${guildId}`, options)
const data = await this._request(`/guild/raw/weekly/${guildId}`, options)
data.id = guildId
return new Leaderboard(data)
}
Expand Down

0 comments on commit 7ef1280

Please sign in to comment.