asAutoModerationRuleOrNull

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

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.