Bots
Bot
GET https://discords.com/bots/api/bot/:id
Path Parameters
Name
Type
Description
id
integer
The ID of the bot you are requesting information about.
The content of this response varies.{"message":"Bot not found."}Votes
GET https://discords.com/bots/api/bot/:id/votes
Path Parameters
Name
Type
Description
id
integer
The ID of the bot you are requesting voting information on.
Headers
Name
Type
Description
Authorization
string
The bot's API token.
Content-Type
string
This should be set to application/json
{
"hasVoted": [],
"hasVoted24": [],
"votes": 0,
"votes24": 0,
"votesMonth": 0
}{"message":"Invalid authorization token."}{"message":"Bot not found."}Widget
GET https://discords.com/bots/api/bot/:id/widget
Path Parameters
Name
Type
Description
id
integer
The ID of the bot you are requesting information on.
Query Parameters
Name
Type
Description
theme
string
Set this to dark for a dark themed widget
width
number
Set the width of the widget
The content of this response varies.{"message":"Bot not found."}Server Count
POST https://discords.com/bots/api/bot/:id
Path Parameters
Name
Type
Description
id
integer
The ID of the bot you are posting information about.
Headers
Name
Type
Description
Authorization
string
The bot's API token.
Request Body
Name
Type
Description
server_count
number
The server count for the bot.
{ message: 'Server count successfully updated.' }//You did not provide any bot token:
{ message: 'Authorization is required.' }
//You did not provide any server count:
{ message: 'Server count is required.' }
//The server count you provided was not a valid number:
{ message: 'Server count must be a valid number.' }
//The token you provided does not match the bot's token:
{ message: 'Invalid authorization token.' }{ message: 'Invalid bot.' }Last updated