createKeywordPresetAutoModerationRule
inline suspend fun GuildBehavior.createKeywordPresetAutoModerationRule(name: String, eventType: AutoModerationRuleEventType = MessageSend, builder: KeywordPresetAutoModerationRuleCreateBuilder.() -> Unit): KeywordPresetAutoModerationRule(source)
Requests to create a new KeywordPresetAutoModerationRule in this guild and returns it.
This requires the ManageGuild permission.
Parameters
name
the rule name.
eventType
the rule event type.
Throws
if something went wrong during the request.