-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: Auto Moderation #7938
feat: Auto Moderation #7938
Conversation
Are we expecting far more documentation upstream? Seems like there's a lot missing from the Discord implementation like API endpoints, something on the Guild structure to store them etc |
|
This comment was marked as spam.
This comment was marked as spam.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changes I put should be good, as I don't think the spaces are necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as some endpoints are not available in most (if not all) guilds it would be nice to add a warning for that
packages/discord.js/src/client/actions/AutoModerationActionExecution.js
Outdated
Show resolved
Hide resolved
packages/discord.js/src/structures/AutoModerationActionExecution.js
Outdated
Show resolved
Hide resolved
packages/discord.js/src/structures/AutoModerationActionExecution.js
Outdated
Show resolved
Hide resolved
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com>
Co-authored-by: Aura Román <kyradiscord@gmail.com>
🤖 Generated by Copilot at e4c1f63
Summary
🛡️🚨🧩
This pull request implements auto moderation functionality for discord.js, by adding new classes, events, actions, handlers, and types related to auto moderation rules and actions. It also updates the existing structures and constants to support the new features, and modifies the bug report template to include the new events.
Walkthrough
AutoModerationRuleManager
,AutoModerationActionExecution
andAutoModerationRule
classes from theindex.js
file (link, link)AutoModerationRule
class from thestructures
folder to theAutoModerationActionExecution
andGuildAuditLogsEntry
classes (link, link)AutoModerationRuleManager
class from themanagers
folder to theGuild
class (link)APITypes.js
file (link)