Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moderation Feature: Purge Messages Without Requring Ban #546

Open
Exper1mental opened this issue Jan 5, 2022 · 1 comment
Open

Moderation Feature: Purge Messages Without Requring Ban #546

Exper1mental opened this issue Jan 5, 2022 · 1 comment
Assignees
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

Comments

@Exper1mental
Copy link
Contributor

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:

  1. !purge <user-id> [opt.-reason] or !purge <user-id> all [opt.-reason] deletes all messages sent by the user
  2. !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
  3. !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:
image

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.

@Jay-Madden
Copy link
Member

so this is somewhat of a discord limitation, however it should be pretty easily doable with the purge method in d.py https://discordpy.readthedocs.io/en/stable/api.html?highlight=purge#discord.TextChannel.purge however this is a fairly slow and also limited method but it would work. We would accept a PR for this for sure. its a good idea, tho it should be its own command

@Jay-Madden Jay-Madden added 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 labels Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants