Subscription

class Subscription(val data: SubscriptionData, val kord: Kord) : KordEntity(source)

An instance of a Subscription.

Subscriptions represent a User making recurring payments for at least one Sku over an ongoing period. Successful payments grant the User access to Entitlements associated with the Sku.

Constructors

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

Properties

Link copied to clipboard

When this subscription was canceled.

Link copied to clipboard

The ISO3166-1 alpha-2 country code of the payment source used to purchase this subscription.

Link copied to clipboard

The end date of the current subscription period.

Link copied to clipboard

The start date of the current subscription period.

Link copied to clipboard
Link copied to clipboard

The list of IDs of the Entitlements granted for this subscription.

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 list of IDs of the Skus subscribed to.

Link copied to clipboard

The list of behaviors of the Skus subscribed to.

Link copied to clipboard

The start date of this subscription.

Link copied to clipboard

The current status of this subscription.

Link copied to clipboard

The behavior of the User who is subscribed.

Link copied to clipboard

The ID of the User who is subscribed.

Functions

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

Compares entities on id.

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