Create or edit multiple AutoMod rules at once #6963
Unanswered
RazzerDE
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I’m developing a security bot that aims to help administrators quickly set up efficient AutoMod rules using a single command. We utilize Discord’s built-in “AutoMod” functionality for this idea. We have 9 out of 9 possible rules, each serving its own important purpose.
However, I’ve noticed that I need to perform a new API request for each AutoMod rule, which means a total of 9 requests per guild that uses this command. This can become quite annoying, especially considering rate limits. When creating these 9 rules, my bot takes more than ~20-70 seconds due to these rate limits.
My proposed solution is to allow specifying AutoMod rules as a list in guild edit, similar to how ForumTags works. With this enhancement, all rules could be created in a single API request. Not only would this significantly speed up the code, but it would also reduce the number of API queries and simplify AutoMod management for bots in general.
Beta Was this translation helpful? Give feedback.
All reactions