Has Voted?
This api can be used to check if a specific user has voted for your bot in the past 12 hours.
GET
https://api.botlist.me/api/v1/bots/:id/voted
Request
Path Parameters | Type | Required | Description |
---|---|---|---|
id | integer | yes | ID of bot to check |
Headers | Type | Required | Description |
---|---|---|---|
authorization | string | yes | Bot Auth token that can be found by editing your bot |
Query Parameters | Type | Required | Description |
---|---|---|---|
userId | integer | yes | User ID of the user to check |
Response
200 OK
hasVoted: boolean
indicates if a user has voted in the last 12 hours.
timestamp: timestamp
, The timestamp at which the user has last voted.
{
"hasVoted": true,
"timestamp": "2021-07-09T13:31:44.876+00:00"
}