webhooks_edit_message
webhooks_edit_message
Section titled “webhooks_edit_message”Category: webhooks
Edit a message previously sent by this webhook.
When to use
Section titled “When to use”- Update an alert that has been resolved, fix a typo, swap V2 layouts.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
webhook_id | string | yes | Webhook id |
token | string | yes | Webhook secret — treat as credential, do not log |
message_id | string | yes | Message to edit |
thread_id | string | no | Query param: thread the message lives in |
content | unknown | no | |
embeds | unknown | no | Pass [] or null to clear embeds. |
allowed_mentions | unknown | no | |
components | unknown | no | Pass [] or null to clear components. Prefer components_v2_edit for V2 layouts. |
attachments | array | no | |
payload_json | string | no | |
flags | integer | no | V2 layout flag = 1<<15 = 32768. Setting V2 requires components. |
poll | object | no |
Returns
Section titled “Returns”\{message_id, channel_id\} after the edit.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
message_id | string | yes | Discord message ID |
channel_id | string | yes | Discord channel ID (snowflake) |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |