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

Check permissions before running phishing actions #360

Open
wants to merge 3 commits into
base: root
Choose a base branch
from

Conversation

NoComment1105
Copy link
Contributor

Previously an error would be thrown if permissions were missing for a detection action in the phishing module. This PR adds some checks in to ensure the permissions are present in the bot before running those actions. If the permissions aren't present then it will send a warning to the console logs and insert a field to the logging embed that states permissions are missing.

I do have a question, should the checks on ban and kick be seperate to the delete check so that if the bot has one but not the other permission, one of the actions still gets run?

I haven't PR'd the fields to the translations repo yet, wanted to ensure the code was acceptable first.

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.

1 participant