AutoModerationEvent

An Event that is associated with an AutoModerationRule.

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
abstract 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

The behavior of the AutoModerationRule this event is associated with.

Link copied to clipboard
abstract val ruleId: Snowflake

The ID of the AutoModerationRule this event is associated with.

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
abstract override fun withStrategy(strategy: EntitySupplyStrategy<*>): AutoModerationEvent

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