Subscription

export class Subscription extends Base
export class Subscription extends Base
Represents a Subscription

Extends

Base
Readonly
canceledAt:Date | null
The time the subscription was canceled
canceledTimestamp:number | null
The timestamp of when the subscription was canceled
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
country:string | null
ISO 3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.
Readonly
currentPeriodEndAt:Date
The time the current subscription period will end at
currentPeriodEndTimestamp:number
The timestamp the current subscription period will end at
Readonly
currentPeriodStartAt:Date
The time the current subscription period will start at
currentPeriodStartTimestamp:number
The timestamp the current subscription period will start at
entitlementIds:Snowflake[]
The entitlement ids granted for this subscription
The id of the subscription
skuIds:Snowflake[]
The SKU ids subscribed to
The current status of the subscription
userId:Snowflake
The id of the user who subscribed
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string