Skip to main content

DiscordSubscription

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordSubscription

Interface: DiscordSubscription

https://discord.com/developers/docs/resources/subscription#subscription-object

Properties

canceled_at

canceled_at: null | string

When the subscription was canceled

Defined in

packages/types/dist/types/discord.d.ts:3478


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/types/dist/types/discord.d.ts:3480


current_period_end

current_period_end: string

End of the current subscription period

Defined in

packages/types/dist/types/discord.d.ts:3474


current_period_start

current_period_start: string

Start of the current subscription period

Defined in

packages/types/dist/types/discord.d.ts:3472


entitlement_ids

entitlement_ids: string[]

List of entitlements granted for this subscription

Defined in

packages/types/dist/types/discord.d.ts:3470


id

id: string

ID of the subscription

Defined in

packages/types/dist/types/discord.d.ts:3464


sku_ids

sku_ids: string[]

List of SKUs subscribed to

Defined in

packages/types/dist/types/discord.d.ts:3468


status

status: DiscordSubscriptionStatus

Current status of the subscription

Defined in

packages/types/dist/types/discord.d.ts:3476


user_id

user_id: string

ID of the user who is subscribed

Defined in

packages/types/dist/types/discord.d.ts:3466