createMentionSpamAutoModerationRule
inline suspend fun GuildBehavior.createMentionSpamAutoModerationRule(name: String, eventType: AutoModerationRuleEventType = MessageSend, builder: MentionSpamAutoModerationRuleCreateBuilder.() -> Unit): MentionSpamAutoModerationRule(source)
Requests to create a new MentionSpamAutoModerationRule 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.