messages_edit
messages_edit
Section titled “messages_edit”Category: messages
Edit a Discord message previously sent by this bot.
When to use
Section titled “When to use”correct typos; update status text; rewrite embeds.
When NOT to use
Section titled “When NOT to use”edit messages NOT sent by this bot — Discord rejects (403).
| Field | Type | Required | Description |
|---|---|---|---|
channel_id | string | yes | Channel containing the message |
message_id | string | yes | Message to edit |
content | string | yes | New text content (max 2000 chars) |
Returns
Section titled “Returns”\{message_id, channel_id, edited_timestamp\}.
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) |
edited_timestamp | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |