Update Discord Bots API endpoint

This commit is contained in:
Noikoio 2018-12-07 21:27:20 -08:00
parent bedcf8ad2b
commit f184748356
2 changed files with 5 additions and 4 deletions

View file

@ -277,11 +277,11 @@ Class BackgroundWorker
Dim dtok = _bot._cfg.DBotsToken
If dtok IsNot Nothing Then
Const dUrl As String = "https://bots.discord.pw/api/bots/{0}/stats"
Const dUrl As String = "https://discord.bots.gg/api/v1/bots/{0}/stats"
Using client As New WebClient()
Dim uri = New Uri(String.Format(dUrl, CType(_bot.DiscordClient.CurrentUser.Id, String)))
Dim data = "{ ""server_count"": " + CType(count, String) + " }"
Dim data = "{ ""guildCount"": " + CType(count, String) + " }"
client.Headers(HttpRequestHeader.Authorization) = dtok
client.Headers(HttpRequestHeader.ContentType) = "application/json"
Try

View file

@ -2,7 +2,8 @@
Recognize birthdays in your Discord community!
Invite: https://discordapp.com/oauth2/authorize?client_id=470673087671566366&scope=bot&permissions=268435456
* Info: https://discord.bots.gg/bots/470673087671566366
* Invite: https://discordapp.com/oauth2/authorize?client_id=470673087671566366&scope=bot&permissions=268435456
This bot will automatically add a role to users during their birthdays. If desired, it will also announce birthdays in a channel of your choosing. Time zones are supported per-server and per-user to ensure that birthdays and events are recognized at appropriate times.
@ -16,4 +17,4 @@ This bot will automatically add a role to users during their birthdays. If desir
## Other details
* Birthday information is not shared between servers. If you are in multiple servers that this bot is in, you must register your birthday (including time zone) within each server.
* This is in case one wishes to share their birthday only in certain communities.
* Problematic users? This bot supports blocking certain or all users from using commands. Server moderators are able to issue commands on a user's behalf.
* Problematic users? This bot supports blocking certain or all users from using commands. Server moderators are able to issue commands on a user's behalf.