Skip to content

Commit

Permalink
Fix discord.bots.gg API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed May 22, 2022
1 parent 0dbdbb5 commit c14960b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/BotListService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public override void Dispose()
private HttpRequestMessage CreateDiscordBotsRequest(int serverCount, int shardCount, string token) => new()
{
Method = HttpMethod.Post,
RequestUri = new Uri($"https://discord.bots.gg/api/bots/{_discordClient.CurrentUser.Id}/stats"),
RequestUri = new Uri($"https://discord.bots.gg/api/v1/bots/{_discordClient.CurrentUser.Id}/stats"),
Content = new StringContent($"{{\"guildCount\": {serverCount},\"shardCount\":{shardCount}}}", Encoding.UTF8, "application/json"),
Headers =
{
Expand Down

0 comments on commit c14960b

Please sign in to comment.