mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-18 09:17:28 +00:00
feat(Subscription): add renewalSkuIds (#10662)
This commit is contained in:
@@ -56,6 +56,14 @@ class Subscription extends Base {
|
||||
*/
|
||||
this.status = data.status;
|
||||
|
||||
if ('renewal_sku_ids' in data) {
|
||||
/**
|
||||
* The SKU ids that this user will be subscribed to at renewal
|
||||
* @type {?Snowflake[]}
|
||||
*/
|
||||
this.renewalSkuIds = data.renewal_sku_ids;
|
||||
}
|
||||
|
||||
if ('canceled_at' in data) {
|
||||
/**
|
||||
* The timestamp of when the subscription was canceled
|
||||
|
||||
+1
@@ -3241,6 +3241,7 @@ export class Subscription extends Base {
|
||||
public userId: Snowflake;
|
||||
public skuIds: Snowflake[];
|
||||
public entitlementIds: Snowflake[];
|
||||
public renewalSkuIds: Snowflake[] | null;
|
||||
public currentPeriodStartTimestamp: number;
|
||||
public currentPeriodEndTimestamp: number;
|
||||
public status: SubscriptionStatus;
|
||||
|
||||
Reference in New Issue
Block a user