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

Add mention raid protection to Auto Moderation #830

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

lukellmann
Copy link
Member

The DSL looks like this:

val rule = guild.createMentionSpamAutoModerationRule("name") {
    mentionRaidProtectionEnabled = true
    blockMessage()
    enabled = true
}
println(rule.isMentionRaidProtectionEnabled)

see discord/discord-api-docs#5778 and discord/discord-api-docs#6133

The DSL looks like this:
val rule = guild.createMentionSpamAutoModerationRule("name") {
    mentionRaidProtectionEnabled = true
    blockMessage()
    enabled = true
}
println(rule.isMentionRaidProtectionEnabled)

see discord/discord-api-docs#5778 and
discord/discord-api-docs#6133
Copy link
Member

@HopeBaron HopeBaron left a comment

Choose a reason for hiding this comment

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

Looks alright!

@lukellmann lukellmann merged commit c47d45c into 0.9.x Jun 17, 2023
@lukellmann lukellmann deleted the mention-raid-protection branch June 17, 2023 12:43
@lukellmann lukellmann removed the request for review from DRSchlaubi June 17, 2023 13:42
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.

2 participants