Skip to content

Commit

Permalink
Update DiscordsCom.ts (#738)
Browse files Browse the repository at this point in the history
* Update DiscordsCom.ts

They've changed the endpoint for posting statistics, or it was incorrect. I have the documentation for you to refer to here. 

https://docs.discords.com/discords.com-bots/updating-server-count#update-your-bots-displayed-server-count

* Update DiscordsCom.ts

Updated documentation reference
  • Loading branch information
BradGamez authored Feb 18, 2025
1 parent 6d98225 commit c687137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Interface/Lists/DiscordsCom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Query } from '../../Utils/Constants'

/**
* Represents the Discords.com service (formerly Bots For Discord).
* @see https://docs.botsfordiscord.com/
* @see https://docs.discords.com/
*/
export default class DiscordsCom extends Service {
/** The values that can be used to select the service. */
Expand Down Expand Up @@ -41,7 +41,7 @@ export default class DiscordsCom extends Service {
const { token, clientID, serverCount } = options
return super._post({
method: 'post',
url: `/bot/${Util.resolveID(clientID)}`,
url: `/bot/${Util.resolveID(clientID)}/setservers`,
headers: { Authorization: token },
data: { server_count: Util.resolveCount(serverCount) }
})
Expand Down

0 comments on commit c687137

Please sign in to comment.