Update message template
update_messageChanges the name, description or content of a message template. data replaces the whole message, so start from get_message. Keep the flow_source_id of existing buttons and select menus, or their flows are deleted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"message_id": "<message_id>"
},
"name": "update_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The message like Discord's API takes it: content, embeds, components and flags. | |
| name | No | ||
| app_id | Yes | The ID of the app, from list_apps. | |
| version | No | The version from get_message, so the update fails instead of overwriting changes made since you read it. | |
| message_id | Yes | ||
| description | No |