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

Allow more than 1 action to be registered per automod rule #2687

Merged
merged 1 commit into from
Jun 11, 2023
Merged

Allow more than 1 action to be registered per automod rule #2687

merged 1 commit into from
Jun 11, 2023

Conversation

ThePheggHerself
Copy link
Contributor

Fixes issue #2686

Swaps the 1st and 2nd parameter around to allow more than 1 action to be registered per rule (And prevents any attempts to register 0 actions per rule)

Fixes an issue where you cannot register more than 1 automod rule due to the limit and length of the rules being inverted (This also has the side effect of allowing you to attempt to register 0 actions, resulting in a 50035 invalid body error)
Copy link
Member

@quinchs quinchs left a comment

Choose a reason for hiding this comment

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

@Misha-133 you have to test your code works, bugs like this shouldn't get included into dev..

@quinchs quinchs merged commit 200bed7 into discord-net:dev Jun 11, 2023
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