polls_get_voters
polls_get_voters
Section titled “polls_get_voters”Category: polls
List users who voted for a specific answer on a poll.
When to use
Section titled “When to use”When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
channel_id | string | yes | Channel containing the poll message |
message_id | string | yes | Poll message ID |
answer_id | integer | yes | Poll answer ID (integer, not snowflake) |
after | string | no | Cursor: only voters with id > this |
limit | integer | no | Max voters to return (1..100, default 25) |
Returns
Section titled “Returns”\{voters:[\{id, username\}], count, untrusted_text\}. Usernames wrapped.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
voters | array | yes | |
count | integer | yes | |
untrusted_text | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |