Skip to content

Commit 7d08b2c

Browse files
authored
Update monetization.py
Signed-off-by: plun1331 <[email protected]>
1 parent 3028e56 commit 7d08b2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/monetization.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ class Subscription(Hashable):
295295
The IDs of the SKUs this subscription is for.
296296
entitlement_ids: List[:class:`int`]
297297
The IDs of the entitlements this subscription is for.
298+
renewal_sku_ids: List[:class:`int`]
299+
The IDs of the SKUs that the buyer will be subscribed to at renewal.
298300
current_period_start: :class:`datetime.datetime`
299301
The start of the current subscription period.
300302
current_period_end: :class:`datetime.datetime`
@@ -311,6 +313,7 @@ class Subscription(Hashable):
311313
"user_id",
312314
"sku_ids",
313315
"entitlement_ids",
316+
"renewal_sku_ids",
314317
"current_period_start",
315318
"current_period_end",
316319
"status",
@@ -324,6 +327,7 @@ def __init__(self, *, state: ConnectionState, data: SubscriptionPayload) -> None
324327
self.user_id: int = int(data["user_id"])
325328
self.sku_ids: list[int] = list(map(int, data["sku_ids"]))
326329
self.entitlement_ids: list[int] = list(map(int, data["entitlement_ids"]))
330+
self.renewal_sku_ids: list[int] = list(map(int, data["renewal_sku_ids"]))
327331
self.current_period_start: datetime = parse_time(data["current_period_start"])
328332
self.current_period_end: datetime = parse_time(data["current_period_end"])
329333
self.status: SubscriptionStatus = try_enum(SubscriptionStatus, data["status"])

0 commit comments

Comments
 (0)