Skip to content

polls_end

Category: polls

Immediately end a poll (expire it). The result message is updated by Discord.

FieldTypeRequiredDescription
channel_idstringyesChannel containing the poll
message_idstringyesPoll message to expire
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

\{ended, channel_id, message_id\}.

FieldTypeRequiredDescription
endedbooleanyes
channel_idstringyesDiscord channel ID (snowflake)
message_idstringyesDiscord message ID
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/polls/end.ts