InteractionCreateEvent

sealed interface InteractionCreateEvent : Event(source)

An Event that fires when an Interaction is created.

The event should be responded to within 3 seconds. See the methods and extensions of each Interaction type for ways to respond to the particular interaction.

Some response methods return an InteractionResponseBehavior that can be used for further operations on the interaction.

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
abstract val interaction: Interaction
Link copied to clipboard
abstract val kord: Kord

The kord instance that created this object.

Link copied to clipboard
abstract val shard: Int

The shard number of the gateway that spawned this event.