mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01: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
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -3132,6 +3132,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