asAutoModerationRuleOrNull

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

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.