POST to your endpoint within seconds of a vote being cast.
Setting Up Your Webhook
1
Open your bot's manage page
Go to discord.place, navigate to your bot’s listing, and click Manage.
2
Open Webhook Settings
Select the Webhook Settings tab from the manage page navigation.
3
Enter your webhook URL
Provide the publicly accessible URL of your HTTP endpoint. discord.place will
POST to this URL on every vote.4
Set a webhook token (optional)
Enter a secret token. This value will be sent in the
Authorization header of every webhook request, allowing your server to verify the request came from discord.place.Webhook tokens are not supported for Discord Webhook URLs (
discord.com/api/webhooks/...). For Discord Webhooks you can instead set a language field to localize the notification message.5
Save and test
Save the settings, then use the Send Test button to fire a test payload to your endpoint and confirm it is reachable.
Webhook Payload
discord.place sends a JSON body with theContent-Type: application/json header on every vote.
Bot Vote
string
The snowflake ID of the bot that was voted for. Present on bot vote webhooks.
string
required
The snowflake ID of the user who cast the vote.
boolean
required
true when the payload is a test event triggered from the manage page; false for real votes.Server Vote
string
The snowflake ID of the server that was voted for. Present on server vote webhooks.
string
required
The snowflake ID of the user who cast the vote.
boolean
required
true for test events, false for real votes.Test Webhook
Test payloads only includeuser and test: true — no bot or guild field is present:
Verifying Requests
If you configured a webhook token, compare the value of the incomingAuthorization header against your stored secret before processing the payload:

