webhooks_edit_message
Modify an existing webhook message in Discord to fix typos, update resolved alerts, or replace layouts.
Instructions
Purpose: Edit a message previously sent by this webhook.
When to use:
Update an alert that has been resolved, fix a typo, swap V2 layouts.
Prefer instead:
components_v2_editfor V2 layouts (this is the low-level escape hatch - V2 validation is intentionallyz.record).
Auth: NO Authorization: Bot … header.
Body mirrors webhooks_execute minus thread_name. thread_id is a query param, not a body field.
Returns: {message_id, channel_id} after the edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ||
| flags | No | V2 layout flag = 1<<15 = 32768. Setting V2 requires components. | |
| token | Yes | Webhook secret - treat as credential, do not log | |
| embeds | No | Pass `[]` or null to clear embeds. | |
| content | No | ||
| thread_id | No | Query param: thread the message lives in | |
| components | No | Pass `[]` or null to clear components. Prefer `components_v2_edit` for V2 layouts. | |
| message_id | Yes | Message to edit | |
| webhook_id | Yes | Webhook id | |
| attachments | No | ||
| payload_json | No | ||
| allowed_mentions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||