Testing

get
Example Webhook Response

https://botsfordiscord.com/api/webhooktest
Returns an example webhook response
Request
Response
200: OK
Cake successfully retrieved.
{
user: "000000000000000000",
bot: "123456789012345678",
votes: {
totalVotes: 5,
votes24: 5,
votesMonth: 3,
hasVoted: [
"000000000000000000",
"111111111111111111",
"222222222222222222"
],
hasVoted24: [
"000000000000000000",
"111111111111111111",
"222222222222222222",
"333333333333333333",
"444444444444444444"
]
},
type: "test"
}

post
Test Webhook Posting

https://botsfordiscord.com/api/webhooktest
Request
Response
Headers
Authorization
optional
string
Webook Secret
Body Parameters
user
optional
string
ID of user that voted
bot
optional
string
ID of bot voted on
votes
optional
object
Object of voting info
200: OK
{
// boolean
"authenticated": false,
// null/string
"auth": null,
// null/string/number
"bot": null,
// null/string/number
"user": null,
// object
"votes": {},
// epoch
"timestamp": 0000000000000
}