asAutoModerationRuleOrNull

Requests to get this behavior as a KeywordPresetAutoModerationRule. Returns null if it wasn't found or if the rule isn't a KeywordPresetAutoModerationRule.

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.