DiscordSubscription
Documentation / @discordeno/bot / DiscordSubscription
Interface: DiscordSubscription
Defined in: packages/types/dist/types/discord/subscription.d.ts:3
https://discord.com/developers/docs/resources/subscription#subscription-object
Properties
canceled_at
canceled_at:
null
|string
Defined in: packages/types/dist/types/discord/subscription.d.ts:21
When the subscription was canceled
country?
optional
country:string
Defined in: packages/types/dist/types/discord/subscription.d.ts:23
ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.
current_period_end
current_period_end:
string
Defined in: packages/types/dist/types/discord/subscription.d.ts:17
End of the current subscription period
current_period_start
current_period_start:
string
Defined in: packages/types/dist/types/discord/subscription.d.ts:15
Start of the current subscription period
entitlement_ids
entitlement_ids:
string
[]
Defined in: packages/types/dist/types/discord/subscription.d.ts:11
List of entitlements granted for this subscription
id
id:
string
Defined in: packages/types/dist/types/discord/subscription.d.ts:5
ID of the subscription
renewal_sku_ids
renewal_sku_ids:
null
|string
[]
Defined in: packages/types/dist/types/discord/subscription.d.ts:13
List of SKUs that this user will be subscribed to at renewal
sku_ids
sku_ids:
string
[]
Defined in: packages/types/dist/types/discord/subscription.d.ts:9
List of SKUs subscribed to
status
status:
DiscordSubscriptionStatus
Defined in: packages/types/dist/types/discord/subscription.d.ts:19
Current status of the subscription
user_id
user_id:
string
Defined in: packages/types/dist/types/discord/subscription.d.ts:7
ID of the user who is subscribed