SkuBehavior

The behavior of an Sku.

Inheritors

Properties

Link copied to clipboard
abstract val applicationId: Snowflake

The ID of the Application this SKU is for.

Link copied to clipboard
abstract val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
abstract val kord: Kord

The kord instance that created this object.

Link copied to clipboard
abstract val supplier: EntitySupplier

The supplier used to request entities.

Functions

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

Compares entities on id.

Link copied to clipboard

Requests to create a new test entitlement to this SKU for a given guild.

Requests to create a new test entitlement to this SKU for a given user.

open suspend fun createTestEntitlement(ownerId: Snowflake, ownerType: EntitlementOwnerType): Entitlement

Requests to create a new test entitlement to this SKU for an owner with the given ownerId and ownerType.

Link copied to clipboard
open suspend fun getSubscription(subscriptionId: Snowflake): Subscription

Requests a Subscription containing this SKU by its id.

Link copied to clipboard
open suspend fun getSubscriptionOrNull(subscriptionId: Snowflake): Subscription?

Requests a Subscription containing this SKU by its id. Returns null if it wasn't found.

Link copied to clipboard

Requests to get all Subscriptions containing this Sku.

Link copied to clipboard
abstract override fun withStrategy(strategy: EntitySupplyStrategy<*>): SkuBehavior

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