discord_delete_dm
Permanently deletes a DM message previously sent by the bot, confirming removal. Use it to clear bot-sent direct messages; server channel messages require a different tool.
Instructions
Permanently delete a DM message previously sent by this bot. IRREVERSIBLE. The bot can only delete its own DM messages, not the recipient's. Returns a confirmation. For a message in a server channel, use discord_delete_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>"
},
"name": "discord_delete_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Discord user ID (snowflake) of the DM recipient. | |
| message_id | Yes | ID of the target message within the DM conversation. |