-
Notifications
You must be signed in to change notification settings - Fork 82
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 MemberProfileAutoModerationRule
#974
Conversation
The DSL for creating/editing MemberProfileAutoModerationRules looks like this: val rule = guild.createMemberProfileAutoModerationRule("name") { anywhereKeyword("cat") regexPattern("^b(a|@)d\$w(o|0)rd(s|$)") allowPrefixKeyword("black cat") blockMemberInteraction() sendAlertMessage(channelId) enabled = true } println(rule) See discord/discord-api-docs#6040
I think an |
does this work for rust regex? auto mod supposedly uses rust regex syntax. |
regexp is simply the name the regex plugin uses, it stands for RegularExpression, not regexp |
yes, i know. the concern that i'm having is that |
Nah I think that's fine |
# Conflicts: # rest/api/rest.klib.api
hm, i'm not sure if it's really worth the effort of an expect/actual annotation. even less if it might even provide slightly wrong results. |
# Conflicts: # core/src/commonMain/kotlin/Unsafe.kt
The DSL for creating/editing
MemberProfileAutoModerationRule
s looks like this:See discord/discord-api-docs#6040