Actions › Messages

Delete messages

Goes through a channel's latest messages and deletes those the filter keeps (up to 100; Discord bulk-deletes only messages under 14 days old)
  • 2 credits
  • Outputs: Success, Failure
  • Never undone after a test

Fields

What you set in Properties. The grey name is the one in the Blueprint's JSON.

FieldWhat it does
Channel
channelId
The channel this action applies torequired
Messages to go through
amount
The channel's N latest messages, 2 to 100.required
Messages to delete
filter
optional
Member
userId
The member whose messages to delete.required
Text
containing
Deletes the messages that contain this text, ignoring case.required
Reason
reason
optional

What it passes on

On the Success output, for the nodes after it. Click a value in the editor to copy its reference.

DataPathType
CountcountNumber

When it fails

The Failure output receives success (false) and error: error.code, error.message in the server's language, and error.detail, what Discord said. The possible causes are in Errors.

Discord permissions

View Channels, Manage Messages, Read Message History

What each one allows, and how to grant one later: Bot permissions.