Delete a message
Remove any message, or the one that started the flow.
message.delete removes a message.
Settings
| Setting | What it does |
|---|---|
| Message | Which message, by its link or ID. See Naming a message. Empty is the message that started the flow, or in a flow started by a button, menu or form, the message it was on. |
| Audit log reason | The reason Discord records. |
Ways out
out.
Notes
- The canvas shows the message named, or "The triggering message".
- The bot needs the Manage Messages permission to delete other people's messages.
- To delete the message that was reacted to, leave Message empty in a Reaction added flow:
{message.id}is that message. - To close a menu only they could see once they've used it, leave Message empty and put this step before any reply. After a reply, Discord no longer lets the bot delete a message only they can see.
- To remove many messages at once, use Purge messages.
Example
On Message sent, if a Message check finds a banned word, delete the message.
Related
Was this page helpful?