Delete message
delete_messagePreview and then confirm to delete a Discord message. The two-step flow lets you get user approval through the conversation before deletion.
Instructions
Delete one message. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. Use this two-step flow to let the user approve through the conversation rather than telling them to delete things by hand in Discord. Supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No | Audit log reason. | |
| channel | Yes | Channel name or ID. | |
| dry_run | No | ||
| message_id | Yes | ID of the message to delete. | |
| confirm_token | No | Token from a previous preview of this exact deletion. |