Skip to content

[WarnSystem]: Use @commands.mod_or_permissions() check.#220

Open
Evanroby wants to merge 2 commits intolaggron42:v3from
Evanroby:v3
Open

[WarnSystem]: Use @commands.mod_or_permissions() check.#220
Evanroby wants to merge 2 commits intolaggron42:v3from
Evanroby:v3

Conversation

@Evanroby
Copy link
Copy Markdown

@Evanroby Evanroby commented Sep 1, 2025

Pull request type

Feature implementation.

Description of the changes

I simply fixed Ruff warnings for lamba, reformated imports, and most importantly removed the use of @checks.mod_or_permissions() and replaced by @commands.mod_or_permissions() check, so [p]permissions can override it, and I used kick_members on some decorators, since it suits more the requirements to run the command for me.

Copy link
Copy Markdown
Owner

@laggron42 laggron42 left a comment

Choose a reason for hiding this comment

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

Hey, thanks a lot for your contribution!

I didn't know about the checks thing, it's a good thing to edit indeed. It's brave that you want to attempt fixing the lint in that mess haha, but thanks a lot!

@Evanroby
Copy link
Copy Markdown
Author

Fixed. you can check it out now.

@Evanroby
Copy link
Copy Markdown
Author

Evanroby commented Sep 15, 2025

If you want, you can dm me (@Evanroby) on discord if you want me to edit other files.
edit: I'm dumb, you can just say it here.

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.

2 participants