-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add preset whitelist to automod #5116
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apacheli
reviewed
Jun 25, 2022
28 tasks
SQKo
added a commit
to SQKo/DiscordPHP
that referenced
this pull request
Jun 30, 2022
SQKo
added a commit
to discord-php/DiscordPHP
that referenced
this pull request
Jul 2, 2022
* auto mod constants, no object and event handler yet * Add Parts, update dependency * modify auditlog definition for AutoMod rule * auto moderation rules event * add Auto Moderation Action Execution * fix wrong auditlog class * modify rule attributes handling * add and build docs for automod * wrong use of nullable property * add trigger_metadata allow_list phpdoc discord/discord-api-docs#5116 * fix typo discord/discord-api-docs#5114
4 tasks
hellsan631
approved these changes
Jul 7, 2022
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.
One note here, currently allow lists don't allow wildcard symbols. they may in the future, but this difference should probably be highlighted. LGTM otherwise
Added note about wildcards in allow lists and reverted the wording change 👍 |
11 tasks
35 tasks
ooliver1
added a commit
to nextcord/nextcord
that referenced
this pull request
Jul 28, 2022
ooliver1
added a commit
to nextcord/nextcord
that referenced
this pull request
Jul 28, 2022
* feat: add AutoModerationEventType * feat: add AutoModerationTriggerType * feat: add KeywordPresetType * feat(types): add automod enums raw types * feat: add AutoModerationTriggerMetadata * docs(automod): add versionadded to triggermetadata * refactor(automod): rename import alias for payload * fix(enums): add new entries to __all__ * feat: add AutoModerationActionType * feat(types): add AutoModerationActionType * feat: add AutoModerationActionMetadata * refactor(automod): redo *metadata to be usable * feat: add AutoModerationAction * feat: add AutoModerationRule * fix: add relevant classes to __all__ * feat(http): add auto moderation api routes * feat(guild): add .auto_moderation_rules * refactor(automod): use dict.get when possible * feat(enums): add MessageType.auto_moderation_action * docs: include the guild feature AUTO_MODERATION * refactor(flags): modify Intents.all for skipped * feat(flags): add intents for auto moderation * feat(guild): add Guild.fetch_auto_moderation_rule * feat:(automod) add AutoModerationRule.delete * feat(automod): add AutoModerationRule.edit * docs(automod): document AutoModerationRule.edit * refactor(automod): allow construction of action * feat(guild): add Guild.create_auto_moderation_rule * feat: add on_auto_moderation_rule_create * feat: add on_auto_moderation_rule_update * feat: add on_auto_moderation_rule_delete * docs: fix warnings * feat(automod): add AutoModerationActionExecution * feat: add on_auto_moderation_action_execution * fix(state): import AutoModerationActionExecution * feat(audit-log): support auto moderation * fix(automod): allow metadata to be ommitted * refactor(automod): use a snowflake for metadata * fix(automod): use correct type for metadata kwarg * docs: fix typos * apply suggestions from code review * docs(guild): document actions in create automod rule * docs(api): reword who's to whose Co-authored-by: Jonah Lawrence <jonah@freshidea.com> * feat(automod): add allow_list metadata discord/discord-api-docs#5116 * fix(automod): content not provided without intents * docs(api): replace accidental :members: removal Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the allow_list metadata which exempts strings from the preset trigger type.