API reference
Polls
Voting in polls and ending them.
Vote in a Poll
PUT
/channels/{channel.id}/polls/{message.id}/answers/@mePeople and botsChoose answers in a poll. An empty list takes your vote back.
Voting needs only View Channel and Read Message History. A poll message is made with poll in Create Message.
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
Body
application/json
answer_idsarray of integer | string · max 10 itemsrequired
Example request
{
"answer_ids": [
1
]
}
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
POLL_EXPIRED520003 · HTTP 400- The poll has ended.
Rate limits
pollVotePerUserChannelbucket 824fbf1f- 20 per 10 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
The same as Discord’s Vote in a Poll.
Get Answer Voters
GET
/channels/{channel.id}/polls/{message.id}/answers/{answer.id}People and botsWho chose an answer.
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
answer.id- The answer's number (1 to 10).
Query string
afterstringlimitinteger · 1 to 100 · default 25
Response
200 APIPollVoters
{
"users": [
{
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
}
]
}
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Discord
The same as Discord’s Get Answer Voters.
End Poll
POST
/channels/{channel.id}/polls/{message.id}/expirePeople and botsEnd a poll now. Its poster only.
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
Response
200 APIMessage
{
"id": "107441200000000100",
"channel_id": "107441200000000010",
"guild_id": "107441200000000001",
"author": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"content": "Hello, world",
"timestamp": "2026-10-22T10:00:00.000Z",
"edited_timestamp": null,
"tts": false,
"mention_everyone": false,
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"pinned": false,
"flags": 0,
"type": 0
}
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
CANNOT_EXPIRE_A_NON_POLL_MESSAGE520009 · HTTP 400- The message has no poll.
Gateway events it causes
Discord
The same as Discord’s End Poll.