polls_end
polls_end
Section titled “polls_end”Category: polls
Immediately end a poll (expire it). The result message is updated by Discord.
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_id | string | yes | Poll message to expire |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{ended, channel_id, message_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
ended | boolean | yes | |
channel_id | string | yes | Discord channel ID (snowflake) |
message_id | string | yes | Discord message ID |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |