createKeywordPresetAutoModerationRule

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.