interface APISubscription

external
export interface APISubscription

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

external
canceled_at : string | null

When the subscription was canceled

optionalexternal
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.

external
current_period_end : string

End of the current subscription period

external
current_period_start : string

Start of the current subscription period

external
entitlement_ids : Snowflake[]

List of entitlements granted for this subscription

external
id : Snowflake

ID of the subscription

external
sku_ids : Snowflake[]

List of SKUs subscribed to

external
status : SubscriptionStatus

Current status of the subscription

external
user_id : Snowflake

ID of the user who is subscribed