Moderation Feature: Purge Messages Without Requring Ban #546
Labels
ClemBot.Bot
Issue pertains to the ClemBot.Bot codebase
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
python
Pull requests that update Python code
AFAIK there is no way to have ClemBot purge a user's messages without banning them. Worse, once they're banned, the
ban
command cannot be used to purge their messages as they are no longer on the server.I propose adding the purge functionality as an additional command and claim. My thought is there should be three ways to invoke the command:
!purge <user-id> [opt.-reason]
or!purge <user-id> all [opt.-reason]
deletes all messages sent by the user!purge <user-id> <time> [opt.-reason]
purges all the user's messages from a set period of time from the present. e.g.!purge @Exper1mental 1h example text
!purge <user-id> <start-date-and-time> <stop-date-and-time> [opt.-reason]
purges all the user's messages from a set period of time. e.g.!purge @Exper1mental 01/01/2022 12:00:00 AM 01/05/2022 3:00:00 PM example text
Use example:
I already have banned the user, so now I have to manually delete their messages.
If added, I could use the separate purge command to remedy this. This also would offer an easy way to purge user messages when they've been getting out of control without having to outright ban them.
The text was updated successfully, but these errors were encountered: