AutoModerationRuleConfigurationEvent

An AutoModerationEvent that is sent when an AutoModerationRule is configured (i.e. created, updated or deleted).

Events of this type are only sent to bot users which have the ManageGuild permission.

Inheritors

Properties

Link copied to clipboard

A custom object that can be inserted when creating events. By default, this is just null.

Link copied to clipboard
open val gateway: Gateway

The Gateway that spawned this event.

Link copied to clipboard

The behavior of the Guild this event is for.

Link copied to clipboard
open override val guildId: Snowflake

The ID of the Guild this event is for.

Link copied to clipboard
abstract val kord: Kord

The kord instance that created this object.

Link copied to clipboard
abstract override val rule: AutoModerationRule

The AutoModerationRule that was configured.

Link copied to clipboard
open override val ruleId: Snowflake

The ID of the rule.

Link copied to clipboard
abstract val shard: Int

The shard number of the gateway that spawned this event.

Link copied to clipboard
abstract val supplier: EntitySupplier

The supplier used to request entities.

Functions

Link copied to clipboard
open suspend fun getGuild(): Guild

Requests to get the Guild this event is for.

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

Requests to get the Guild this event is for. Returns null if it wasn't found.

Link copied to clipboard
abstract override fun toString(): String
Link copied to clipboard

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