Discord Bots
  • API Introduction
  • Implementing Voting
  • Vote Webhooks
  • Bot Statistics
  • Vote API
  • Commands List
Powered by GitBook
On this page

Was this helpful?

Vote Webhooks

Vote webhooks are fired whenever a user upvotes your bot. This can be configured in bot settings.

It is advised to implement vote webhooks in your bot, as more votes brings higher rankings on our site.

Upvote

POST https://your-api.com/your-webhook-url

This request is made to your API when an upvote is made.

Headers

Name
Type
Description

Authorization

string

The webhook secret

Request Body

Name
Type
Description

admin

boolean

If the user is a site administrator

avatar

string

The avatar hash of the user

username

string

The username of the user who voted

id

string

The ID of the user who voted

N/A
PreviousImplementing VotingNextBot Statistics

Last updated 4 years ago

Was this helpful?