discord_end_poll
End a bot-owned Discord poll immediately instead of waiting for its duration to expire, then return results and finalization status; the action is irreversible.
Instructions
End a poll immediately instead of waiting for its duration to expire. Only the bot's own polls can be ended early. Irreversible: a poll cannot be reopened once ended. A poll that has already ended or expired is returned unchanged. Requires the View Channel and Read Message History permissions. Returns the results; resultsFinalized tells whether Discord has finished counting them. To read the results without ending the poll, use discord_get_poll_results.
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": "discord_end_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ID (snowflake) of the channel or thread. | |
| message_id | Yes | ID of the poll message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answers | Yes | ||
| question | Yes | ||
| expiresAt | Yes | ||
| messageId | Yes | ||
| allowMultiselect | Yes | ||
| resultsFinalized | Yes |