Skip to content

Commit

Permalink
Update disnake/subscription.py
Browse files Browse the repository at this point in the history
Co-authored-by: vi <[email protected]>
Signed-off-by: Snipy7374 <[email protected]>
  • Loading branch information
Snipy7374 and shiftinv authored Dec 21, 2024
1 parent e34df7c commit 2c46b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion disnake/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def __init__(self, *, data: SubscriptionPayload, state: ConnectionState) -> None
self.sku_ids: List[int] = list(map(int, data["sku_ids"]))
self.entitlement_ids: List[int] = list(map(int, data["entitlement_ids"]))
self.renewal_sku_ids: Optional[List[int]] = (
list(map(int, data["renewal_sku_ids"])) if data["renewal_sku_ids"] else None
list(map(int, renewal_sku_ids))
if (renewal_sku_ids := data.get("renewal_sku_ids")) is not None
else None
)
self.current_period_start: datetime.datetime = parse_time(data["current_period_start"])
self.current_period_end: datetime.datetime = parse_time(data["current_period_end"])
Expand Down

0 comments on commit 2c46b96

Please sign in to comment.