Projects
Project endpoints are subject to stricter rate limits than others.
POST/v1/projects/@me/commands
Update Discord Bot Commands
Updates the commands for a specific bot.
Post Body
This endpoint accepts an array of objects following Discord's application command structure.
Request
https://top.gg/api/v1/projects/@me/commands
GET/v1/projects/@me/votes/:user_id
Get Vote Status By User
Gets the vote status for an individual user.
Query Parameters
- Name
source- Type
- string
- Description
The source where the user ID is coming from. See User Source for valid values. Defaults to
topgg.
Response Schema
- Name
created_at- Type
- Date
- Description
The timestamp of when the user last voted.
- Name
expires_at- Type
- Date
- Description
The timestamp of when the user can vote again.
- Name
weight- Type
- number
- Description
The amount of votes this vote counted for.
Request
https://top.gg/api/v1/projects/@me/votes/:user_id
Response
{
"created_at": "2023-10-01T12:34:56.789Z",
"expires_at": "2023-10-01T18:34:56.789Z",
"weight": 1
}