AutoModerationRule

An instance of an Auto Moderation Rule.

Auto Moderation is a feature which allows each Guild to set up rules that trigger based on some criteria. For example, a rule can trigger whenever a message contains a specific keyword.

Rules can be configured to automatically execute actions whenever they trigger. For example, if a user tries to send a message which contains a certain keyword, a rule can trigger and block the message before it is sent.

Inheritors

Properties

Link copied to clipboard

The actions which will execute when the rule is triggered.

Link copied to clipboard

The behavior of the Member which first created this rule.

Link copied to clipboard

The ID of the Member which first created this rule.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The IDs of the GuildMessageChannels that should not be affected by the rule.

Link copied to clipboard

The behaviors of the GuildMessageChannels that should not be affected by the rule.

Link copied to clipboard

The IDs of the Roles that should not be affected by the rule.

Link copied to clipboard

The behaviors of the Roles that should not be affected by the rule.

Link copied to clipboard

The behavior of the Guild which this rule belongs to.

Link copied to clipboard
override val guildId: Snowflake

The ID of the Guild which this rule belongs to.

Link copied to clipboard
override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard

Whether the rule is enabled.

Link copied to clipboard
override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The rule name.

Link copied to clipboard
override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
open suspend fun delete(reason: String? = null)

Requests to delete this AutoModerationRule.

Link copied to clipboard

Requests to edit this AutoModerationRule and returns the edited rule.

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open suspend fun getGuild(): Guild

Requests to get the Guild which this rule belongs to.

Link copied to clipboard
open suspend fun getGuildOrNull(): Guild?

Requests to get the Guild which this rule belongs to. Returns null if it wasn't found.

Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
abstract override fun toString(): String
Link copied to clipboard
abstract override fun withStrategy(strategy: EntitySupplyStrategy<*>): AutoModerationRule

Returns a copy of this class with a new supplier provided by the strategy.