,autopurge
Auto-delete messages on a schedule.
How to use it
Type it in any channel where the bot can read messages. The prefix is , on this server and can be changed with ,prefixes.
,autopurge <channel> <amount> <member>
,autopurge lock,autopurge interval 300,autopurge type images,autopurge enable,autopurge statusArguments
Square brackets are optional, angle brackets are required — the same legend ,help autopurge prints in Discord.
| Parameter | Kind | What it takes |
|---|---|---|
channel | required | a channel mention, name or id |
amount | required | a number |
member | required | a member mention, id or username |
Before you run it
What the command itself checks before it does anything, read from the src/commands/security/autopurge.js source.
- Permissions
- Manage Channels
- Reads
- member, channel mentions
- Replies with
- a plain message, paginated when it runs long
- Cooldown
- 4s per member, per server
Every subcommand
Call the command with no argument inside Discord and the bot draws one page per subcommand, exactly like this.
| Subcommand | What it does |
|---|---|
,autopurge enable | start sweeping on the schedule |
,autopurge disable | stop sweeping |
,autopurge pause | hold the schedule without losing it |
,autopurge resume | carry on where the pause left off |
,autopurge status | show every autopurge setting |
,autopurge list | every channel being swept |
,autopurge interval<10-86400> | how old a message must be to go |
,autopurge limit<1-100> | how many messages one pass may delete |
,autopurge type<all|bots|humans|attachments|images> | which kinds of message get swept |
,autopurge lock[#channel] | add a channel to the sweep |
,autopurge unlock[#channel] | take a channel out of the sweep |
,autopurge whitelist<add|remove|list> [@user] | never sweep one member's messages |
,autopurge blacklist<add|remove|list> [@user] | always sweep one member's messages |
,autopurge history | the last ten sweeps |
,autopurge notify | turn the in-channel notice on or off |
,autopurge logchannel<#channel> | send sweep logs to a channel |
In Discord
What a member sees when they run it. The reply is sent as a Components V2 panel on the server's accent colour, paginated when it is long.
More security commands
Commands that usually get used alongside ,autopurge.
Ready to put bleh in your server?
Add it in a couple of clicks, run ,setup, then fine-tune everything from the dashboard.