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

Support Auto Moderation #1709

Closed
11 tasks done
banocean opened this issue May 4, 2022 · 5 comments · Fixed by #1846
Closed
11 tasks done

Support Auto Moderation #1709

banocean opened this issue May 4, 2022 · 5 comments · Fixed by #1846
Assignees
Labels
c-model Affects the model crate d-api Change related to Discord's API. t-feature Addition of a new feature

Comments

@banocean
Copy link
Contributor

banocean commented May 4, 2022

Docs PRs:

Progress:

@7596ff 7596ff added t-feature Addition of a new feature c-model Affects the model crate d-api Change related to Discord's API. d-not-deployed Discord API change that hasn't been deployed to the docs. labels May 4, 2022
@HTGAzureX1212
Copy link
Contributor

New event: AUTO_MODERATION_BLOCK_MESSAGE, has the value 143.

@banocean
Copy link
Contributor Author

banocean commented May 8, 2022

New event: AUTO_MODERATION_BLOCK_MESSAGE, has the value 143.

event? I think its an audit log action type

@HTGAzureX1212
Copy link
Contributor

Ahh yeah I misread it, it's an "audit log event".

@7596ff 7596ff removed the d-not-deployed Discord API change that hasn't been deployed to the docs. label Jun 16, 2022
@7596ff
Copy link
Contributor

7596ff commented Jun 16, 2022

The source PR has been merged.

@7596ff 7596ff self-assigned this Jun 16, 2022
@7596ff 7596ff changed the title Support for content moderation Support Auto Moderation Jun 16, 2022
7596ff added a commit that referenced this issue Jun 16, 2022
Adds auto moderation models.

Part of #1709.
7596ff added a commit that referenced this issue Jun 30, 2022
Adds auto moderation models.

Part of #1709.
@7596ff 7596ff linked a pull request Jul 2, 2022 that will close this issue
2 tasks
@vilgotf vilgotf removed a link to a pull request Jul 3, 2022
2 tasks
7596ff added a commit that referenced this issue Jul 16, 2022
Add `Event::AutoModerationActionExectuion`,
`Event::AutoModerationRuleCreate`, `Event::AutoModerationRuleDelete`,
`Event::AutoModerationRuleUpdate`, respective payloads, and
`DispatchEvent`, `EventType`, and `EventTypeFlags` variants.

Add `AuditLog::auto_moderation_rules`.

Add `guild::auto_moderation` types:
- `AutoModerationAction`
- `AutoModerationActionMetadata`
- `AutoModerationActionType`
- `AutoModerationEventType`
- `AutoModerationKeywordPresetType`
- `AutoModerationTriggerMetadata`
- `AutoModerationTriggerType`

Add `id::AutoModerationRuleMarker`.

Part of #1709.
@banocean
Copy link
Contributor Author

discord/discord-api-docs#5504 👀

7596ff added a commit that referenced this issue Oct 28, 2022
Closes #1709.

Closes #1867. 

Changelog
---------

Remove `TriggerType::HarmfulLink`, add `TriggerType::MentionSpam`.

Add requests `CreateAutoModerationRule`, `DeleteAutoModerationRule`,
`GetAutoModerationRule`, `GetGuildAutoModerationRules`, and
`UpdateAutoModerationRule`.

`CreateAutoModerationRule` ensures the correct trigger metadata is
supplied by replacing `exec` with `with_trigger_keyword`, `with_spam`,
and `with_trigger_keyword_preset`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate d-api Change related to Discord's API. t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants