asAutoModerationRuleOrNull

Requests to get this behavior as an AutoModerationRule. Returns null if it wasn't found.

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.