discord_edit_dm
Edit the text content of a direct message previously sent by the bot, replacing the body while preserving any embed. Use it to correct or update bot-sent DMs without changing their embeds.
Instructions
Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. It changes the text and keeps any embed; discord_edit_dm_embed replaces the embed. Returns a confirmation. For a message in a server channel, use discord_edit_message. With DISCORD_ALLOWED_GUILDS set, the user must be a member of a listed server.
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": {
"user_id": "<user_id>",
"message_id": "<message_id>",
"content": "<content>"
},
"name": "discord_edit_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New plain-text content that fully replaces the existing message (max 2000 characters). | |
| user_id | Yes | Discord user ID (snowflake) of the DM recipient. | |
| message_id | Yes | ID of the target message within the DM conversation. |