Skip to content

Commit 9a115b1

Browse files
authored
Merge branch 'master' into forwarding
2 parents cf98e47 + 04b7ca0 commit 9a115b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ These changes are available on the `master` branch, but have not yet been releas
9595
([#2656](https://github.com/Pycord-Development/pycord/pull/2656))
9696
- Fixed `AttributeError` when trying to consume a consumable entitlement.
9797
([#2564](https://github.com/Pycord-Development/pycord/pull/2564))
98+
- Fixed `Subscription.renewal_sku_ids` not accepting `None` from the received payload.
99+
([#2709](https://github.com/Pycord-Development/pycord/pull/2709))
98100

99101
### Changed
100102

discord/monetization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def __init__(self, *, state: ConnectionState, data: SubscriptionPayload) -> None
327327
self.user_id: int = int(data["user_id"])
328328
self.sku_ids: list[int] = list(map(int, data["sku_ids"]))
329329
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"]))
330+
self.renewal_sku_ids: list[int] = list(map(int, data["renewal_sku_ids"] or []))
331331
self.current_period_start: datetime = parse_time(data["current_period_start"])
332332
self.current_period_end: datetime = parse_time(data["current_period_end"])
333333
self.status: SubscriptionStatus = try_enum(SubscriptionStatus, data["status"])

0 commit comments

Comments
 (0)