Edit DM
discord_
Write
- Toolset
- Direct messages
dm - Context cost
- 211 tokens, estimated843 bytes of definition, divided by 4
Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. Use discord_ for embed messages. 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 |
|---|---|---|---|
| user_ | string | pattern ^\d{17,20}$ | Discord user ID (snowflake) of the DM recipient. |
| message_ | string | pattern ^\d{17,20}$ | ID of the target message within the DM conversation. |
| contentrequired | string | none | New plain-text content that fully replaces the existing message (max 2000 characters). |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Named in its description
Also in Direct messages
Raw definition (843 bytes)
{
"name": "discord_edit_dm",
"description": "Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. Use discord_edit_dm_embed for embed messages. Returns a confirmation.",
"inputSchema": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord user ID (snowflake) of the DM recipient."
},
"message_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID of the target message within the DM conversation."
},
"content": {
"type": "string",
"description": "New plain-text content that fully replaces the existing message (max 2000 characters)."
}
},
"required": [
"user_id",
"message_id",
"content"
],
"additionalProperties": false
},
"annotations": {
"title": "Edit DM",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}
}