polls_end
Immediately ends a poll and expires voting, updating the result message through Discord. Use it to close your bot's own polls by channel and message ID.
Instructions
Purpose: Immediately end a poll (expire it). The result message is updated by Discord.
Note: Only the poll author (your bot) can end its own polls.
Returns: {ended, channel_id, message_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>",
"message_id": "<message_id>"
},
"name": "polls_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Channel containing the poll | |
| message_id | Yes | Poll message to expire | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||