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

Introducing auto moderation #2159

Closed

Conversation

RealYusufIsmail
Copy link
Contributor

@RealYusufIsmail RealYusufIsmail commented Jun 18, 2022

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

Discord introduced auto moderation and the addition of it in the docs can be found here https://discord.com/developers/docs/change-log#auto-moderation.

Example

To create an auto mod rule you would do

AutoModerationRule rule  = AutoModerationRule.MessageSend.preset("name", TriggerType.KEYWORD).setKeywordPresets(KeywordPresetType.SLURS, KeywordPresetType.PROFANITY).build();


or

AutoModerationRule rule  = AutoModerationRule.MessageSend.keyword("name", TriggerType.KEYWORD).setKeyword("butts", "*cats").build();

and then 

guild.createAutoModerationRule(ruke).queue();

@RealYusufIsmail RealYusufIsmail marked this pull request as draft June 18, 2022 14:05
@RealYusufIsmail RealYusufIsmail marked this pull request as ready for review June 20, 2022 20:46
Copy link
Contributor

@Chew Chew left a comment

Choose a reason for hiding this comment

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

I neglected going through and fixing every syntax inconsistency, but I hope the point is made. Also needs more docs. Looks good otherwise!

@RealYusufIsmail
Copy link
Contributor Author

Got the point, and will clean it up tomorrow or today

@RealYusufIsmail RealYusufIsmail requested review from CheesyGamer77 and removed request for MinnDevelopment August 24, 2022 13:57
@Mysterious-Dev
Copy link
Contributor

Dead PR ?

@RealYusufIsmail
Copy link
Contributor Author

@MinnDevelopment Planning on working on this pr now. Is there any point or shall I wait

@MinnDevelopment
Copy link
Member

I won't have time to look into automod any time soon. But we might be interested in making a new PR from scratch in the future. Can't make any promises right now.

@MinnDevelopment
Copy link
Member

Thank you for your effort, but we've decided on a different design. This PR will be superseded by #2429.

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.

7 participants