Skip to main content

Subscription

@discordeno/bot


Documentation / @discordeno/bot / Subscription

Interface: Subscription

Defined in: packages/bot/src/transformers/types.ts:1762

Properties

canceledAt

canceledAt: number

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

When the subscription was canceled


country?

optional country: string

Defined in: packages/bot/src/transformers/types.ts:1782

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


currentPeriodEnd

currentPeriodEnd: number

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

End of the current subscription period


currentPeriodStart

currentPeriodStart: number

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

Start of the current subscription period


entitlementIds

entitlementIds: bigint[]

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

List of entitlements granted for this subscription


id

id: bigint

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

ID of the subscription


renewalSkuIds?

optional renewalSkuIds: bigint[]

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

List of SKUs that this user will be subscribed to at renewal


skuIds

skuIds: bigint[]

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

List of SKUs subscribed to


status

status: DiscordSubscriptionStatus

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

Current status of the subscription


userId

userId: bigint

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

ID of the user who is subscribed