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

Add delete messages option to /kick and /ban #39

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

MatthewL246
Copy link
Member

Resolves #33

Changes:

This adds an option to delete messages to both /kick and /ban. Using the option with /ban simply passes the option directly to the ban. Using the option with /kick turns the kick into a soft-ban, which uses a ban with message deletion and immediate unban to effectively kick the user. Soft-bans are logged and stored as kicks because they are effectively kicks.

Copy link
Contributor

@wolfendale wolfendale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/commands/kick.ts Outdated Show resolved Hide resolved
Copy link
Member

@jonbarrow jonbarrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jonbarrow jonbarrow merged commit 7280465 into dev Aug 9, 2024
@MatthewL246 MatthewL246 deleted the kick-ban-delete-messages branch August 9, 2024 19:36
@MatthewL246 MatthewL246 mentioned this pull request Oct 5, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants