delete_message
Delete a Discord message from a specified channel using its message ID. Provide an optional reason for audit logs.
Instructions
Discordメッセージを削除します(自分が送信したメッセージまたは適切な権限がある場合)
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": {
"channelId": "<channelId>",
"messageId": "<messageId>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | 削除理由(最大512文字、監査ログに記録される) | |
| channelId | Yes | メッセージが存在するチャンネルのID | |
| messageId | Yes | 削除するメッセージのID |