Skip to content

webhooks_edit_message

Category: webhooks

Edit a message previously sent by this webhook.

  • Update an alert that has been resolved, fix a typo, swap V2 layouts.
FieldTypeRequiredDescription
webhook_idstringyesWebhook id
tokenstringyesWebhook secret — treat as credential, do not log
message_idstringyesMessage to edit
thread_idstringnoQuery param: thread the message lives in
contentunknownno
embedsunknownnoPass [] or null to clear embeds.
allowed_mentionsunknownno
componentsunknownnoPass [] or null to clear components. Prefer components_v2_edit for V2 layouts.
attachmentsarrayno
payload_jsonstringno
flagsintegernoV2 layout flag = 1<<15 = 32768. Setting V2 requires components.
pollobjectno

\{message_id, channel_id\} after the edit.

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

packages/mcp-core/src/tools/webhooks/edit_message.ts