Edit embed
discord_
Write
- Toolset
- Messages
messages - Discord permissions
- View Channel, Read Message History and Embed Links
- Context cost
- 677 tokens, estimated2,706 bytes of definition, divided by 4
Replace the embed on a message previously sent by this bot. Only this bot's messages can be edited. This is a full replace, not a merge: provided fields are applied and omitted fields are dropped from the embed. Requires the View Channel, Read Message History and Embed Links permissions. Returns a confirmation.
Risk and annotations
Read-onlyreadOnlyHint | no | Can modify your server. |
|---|---|---|
DestructivedestructiveHint | no | Declared non-destructive. |
IdempotentidempotentHint | yes | Repeating the call with the same arguments has no additional effect. |
Open worldopenWorldHint | yes | Interacts with an external system: Discord. |
Annotations are hints the server declares. Clients use them to decide when to ask you before a call.
Parameters
| Parameter | Type | Rules | Description |
|---|---|---|---|
| channel_ | string | pattern ^\d{17,20}$ | ID (snowflake) of the channel or thread containing the message. |
| message_ | string | pattern ^\d{17,20}$ | ID of the message to edit. Must be a message authored by this bot (an embed is added if it has none). |
| titleoptional | string | none | Embed title shown in bold at the top. |
| urloptional | string | format uripattern ^https?:// | URL that makes the title clickable. |
| descriptionoptional | string | none | Main body text of the embed (supports Markdown). |
| coloroptional | string | pattern ^#[0-9A-Fa-f]{6}$ | Side-bar color as a hex string, e.g. '#5865F2'. |
| fieldsoptional | array of objects | none | Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row). |
| name (nested, level 1)required | string | none | Field heading. |
| value (nested, level 1)required | string | none | Field body text. |
| inline (nested, level 1) | boolean | none | If true, render this field side-by-side with adjacent inline fields. |
| authoroptional | object | none | Author block shown at the top of the embed. |
| name (nested, level 1)required | string | none | Author display name. |
| icon_ | string | format uripattern ^https?:// | Small icon shown next to the author name. |
| url (nested, level 1) | string | format uripattern ^https?:// | URL the author name links to. |
| thumbnail_ | string | format uripattern ^https?:// | Small image shown in the top-right corner. |
| footeroptional | string | none | Footer text shown at the bottom of the embed. |
| image_ | string | format uripattern ^https?:// | Large image shown below the embed body. |
| timestampoptional | boolean | none | If true, stamp the embed with the current time. |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Also in Messages
-
Read messages, Read-only
discord_read_ messages -
Send message, Write
discord_send_ message -
Reply to message, Write
discord_reply_ message -
Edit message, Write
discord_edit_ message -
Add reaction, Write
discord_add_ reaction -
List channel threads, Read-only
discord_list_ channel_ threads -
Create thread, Write
discord_create_ thread -
Bulk delete messages, Destructive
discord_bulk_ delete_ messages -
Send embed, Write
discord_send_ embed -
Send multiple embeds, Write
discord_send_ multiple_ embeds -
Delete message, Destructive
discord_delete_ message -
Pin or unpin message, Write
discord_pin_ message -
Search messages, Read-only
discord_search_ messages -
Search guild messages, Read-only
discord_search_ guild_ messages -
Crosspost message, Write
discord_crosspost_ message -
Remove reactions, Destructive
discord_remove_ reactions -
Get reactions, Read-only
discord_get_ reactions -
Get message attachments, Read-only
discord_get_ message_ attachments -
Fetch pinned messages, Read-only
discord_fetch_ pinned_ messages -
Forward message, Write
discord_forward_ message
Raw definition (2,706 bytes)
{
"name": "discord_edit_embed",
"description": "Replace the embed on a message previously sent by this bot. Only this bot's messages can be edited. This is a full replace, not a merge: provided fields are applied and omitted fields are dropped from the embed. Requires the View Channel, Read Message History and Embed Links permissions. Returns a confirmation.",
"inputSchema": {
"type": "object",
"properties": {
"channel_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID (snowflake) of the channel or thread containing the message."
},
"message_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID of the message to edit. Must be a message authored by this bot (an embed is added if it has none)."
},
"title": {
"description": "Embed title shown in bold at the top.",
"type": "string"
},
"url": {
"description": "URL that makes the title clickable.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"description": {
"description": "Main body text of the embed (supports Markdown).",
"type": "string"
},
"color": {
"description": "Side-bar color as a hex string, e.g. '#5865F2'.",
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"fields": {
"description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Field heading."
},
"value": {
"type": "string",
"description": "Field body text."
},
"inline": {
"description": "If true, render this field side-by-side with adjacent inline fields.",
"type": "boolean"
}
},
"required": [
"name",
"value"
],
"additionalProperties": false
}
},
"author": {
"description": "Author block shown at the top of the embed.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Author display name."
},
"icon_url": {
"description": "Small icon shown next to the author name.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"url": {
"description": "URL the author name links to.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"thumbnail_url": {
"description": "Small image shown in the top-right corner.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"footer": {
"description": "Footer text shown at the bottom of the embed.",
"type": "string"
},
"image_url": {
"description": "Large image shown below the embed body.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"timestamp": {
"description": "If true, stamp the embed with the current time.",
"type": "boolean"
}
},
"required": [
"channel_id",
"message_id"
],
"additionalProperties": false
},
"annotations": {
"title": "Edit embed",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}
}