asAutoModerationRuleOrNull

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

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.