Entitlement

class Entitlement(val data: EntitlementData, val kord: Kord) : KordEntity(source)

An instance of an Entitlement.

Entitlements represent that a User or Guild has access to a premium offering in your Application.

Constructors

Link copied to clipboard
constructor(data: EntitlementData, kord: Kord)

Properties

Link copied to clipboard

The ID of the Application this entitlement is for.

Link copied to clipboard
Link copied to clipboard

The date at which this entitlement is no longer valid.

Link copied to clipboard

The behavior of the Guild that is granted access to this entitlement's Sku.

Link copied to clipboard

The ID of the Guild that is granted access to this entitlement's Sku.

Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard

For consumable items, whether this entitlement has been consumed.

Link copied to clipboard

Whether this entitlement has been deleted.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The ID of the Sku this entitlement is for.

Link copied to clipboard

The start date at which this entitlement is valid.

Link copied to clipboard

The type of this entitlement.

Link copied to clipboard

The behavior of the User that is granted access to this entitlement's Sku.

Link copied to clipboard

The ID of the User that is granted access to this entitlement's Sku.

Functions

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

Compares entities on id.

Link copied to clipboard
suspend fun consume()

For One-Time Purchase consumable Skus, marks this entitlement for the user as consumed.

Link copied to clipboard
suspend fun delete()

Requests to delete this currently active test entitlement.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String