asAutoModerationRule

open suspend override fun asAutoModerationRule(): SpamAutoModerationRule(source)

Requests to get this behavior as a SpamAutoModerationRule.

This requires the ManageGuild permission.

Throws

if anything went wrong during the request.