Clean
Description
This command is used to delete multiple messages from the channel it's used in. Arguments serve as filter to fine-tune which criteria the messages must meet to be deleted. If multiple filters are provided, messages will be deleted if they meet all the requirements.
Required arguments
None
Optional arguments
user
- Deletes messages sent by this userstartswith
- Deletes messages with the content starting with this optionendswith
- Deletes messages with the content ending with this optioncontains
- Deletes messages containing this optionbots
- Deletes messages sent by botssystem
- Deletes system messagesamount
- The amount of messages to delete (defaults to 100)preserve-pins
- This flag is used to not purge pinned messagesno-trace
- Makes the response ephemeral, effectively leaving no trace in the cleaned channel
Usage
Required permission
This command's level is 50 by default. The bot needs Read Messages, Send Messages, Manage Messages permissions in order to be able to execute this command.
Last updated