Skip to main content

Subscription

@discordeno/botDocs


Documentation / @discordeno/bot / Subscription

Interface: Subscription

Properties

canceledAt

canceledAt: number

When the subscription was canceled

Defined in

packages/bot/src/transformers/types.ts:1778


country?

optional country: string

ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.

Defined in

packages/bot/src/transformers/types.ts:1780


currentPeriodEnd

currentPeriodEnd: number

End of the current subscription period

Defined in

packages/bot/src/transformers/types.ts:1774


currentPeriodStart

currentPeriodStart: number

Start of the current subscription period

Defined in

packages/bot/src/transformers/types.ts:1772


entitlementIds

entitlementIds: bigint[]

List of entitlements granted for this subscription

Defined in

packages/bot/src/transformers/types.ts:1770


id

id: bigint

ID of the subscription

Defined in

packages/bot/src/transformers/types.ts:1764


skuIds

skuIds: bigint[]

List of SKUs subscribed to

Defined in

packages/bot/src/transformers/types.ts:1768


status

status: DiscordSubscriptionStatus

Current status of the subscription

Defined in

packages/bot/src/transformers/types.ts:1776


userId

userId: bigint

ID of the user who is subscribed

Defined in

packages/bot/src/transformers/types.ts:1766