delete

open suspend fun delete(reason: String? = null)(source)

Requests to delete this AutoModerationRule.

This requires the ManageGuild permission.

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.