Purge Messages

The purge messages action block will allow you purge a specific amount of messages in a specfic channel.
If messages are older than 14 days, they can't be deleted, unless you're deleting only 1 message.
Channel

This type will purge messages in the channel that the command / event was executed in or where a button / menu option was clicked.
Selecting this option will target a specific channel you choose to purge messages in.
From a block
Allows you to select the channel to purge messages in from a channel/thread the bot created within this command/event.

From the server
Allows you to select a specific channel from a server the bot is in.

ID or variable
Allows you to input a plain channel ID / variable or a channel option.

How many
This field is the amount of messages that will be purged. It only accepts integers / variables that return a integer.


Keep Pinned Messages
This toggle will allow you to have the bot ignore messages that are currently pinned when purging.

Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.

The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out here.
