JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Introducing auto moderation

Open RealYusufIsmail opened this issue 2 years ago • 6 comments

Pull Request Etiquette

Changes

  • [x] Internal code
  • [x] Library interface (affecting end-user code)
  • [x] 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 avatar Jun 18 '22 14:06 RealYusufIsmail

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

RealYusufIsmail avatar Jun 21 '22 15:06 RealYusufIsmail

Please do not add the message content intent in this PR. It is completely out of scope.

MinnDevelopment avatar Jun 22 '22 09:06 MinnDevelopment

@Chew @CheesyGamer77 Can you re review this pr please.

RealYusufIsmail avatar Jun 26 '22 10:06 RealYusufIsmail

There's a button to request a re-review...

Chew avatar Jun 26 '22 16:06 Chew

There's a button to request a re-review...

I press and nothing happens. Only works for Minn.

RealYusufIsmail avatar Jun 26 '22 16:06 RealYusufIsmail

@Chew can you do another review please.

RealYusufIsmail avatar Jun 26 '22 20:06 RealYusufIsmail

Dead PR ?

Mysterious-Dev avatar Jan 16 '23 14:01 Mysterious-Dev

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

RealYusufIsmail avatar Feb 15 '23 11:02 RealYusufIsmail

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 avatar Feb 15 '23 11:02 MinnDevelopment

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

MinnDevelopment avatar Apr 02 '23 14:04 MinnDevelopment