StageInstance

class StageInstance(val data: StageInstanceData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : StageInstanceBehavior(source)

Constructors

Link copied to clipboard
constructor(data: StageInstanceData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard
open override val channelId: Snowflake

The id of the associated StageChannel.

Link copied to clipboard
Link copied to clipboard

The guild id of the associated StageChannel.

Link copied to clipboard

The id of the GuildScheduledEvent for this Stage Instance, if it belongs to an event.

Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The privacy level of this Stage Instance.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

The topic of this Stage Instance.

Functions

Link copied to clipboard
open suspend override fun asStageInstance(): StageInstance

Requests to get this behavior as a StageInstance if it's not an instance of a StageInstance.

Link copied to clipboard
open suspend override fun asStageInstanceOrNull(): StageInstance

Requests to get this behavior as a StageInstance if it's not an instance of a StageInstance, returns null if the stage instance isn't present.

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)
Link copied to clipboard
Link copied to clipboard
open suspend fun fetchStageInstance(): StageInstance

Retrieve the StageInstance associated with this behaviour from the provided EntitySupplier

Link copied to clipboard

Retrieve the StageInstance associated with this behaviour from the provided EntitySupplier returns null if the StageInstance isn't present.

Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): StageInstance

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