diff --git a/discord/shard.py b/discord/shard.py index eeb240c95..454fd5e28 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -299,6 +299,8 @@ class ShardInfo: class SessionStartLimits: """A class that holds info about session start limits + .. versionadded:: 2.5 + Attributes ---------- total: :class:`int` @@ -309,8 +311,6 @@ class SessionStartLimits: The number of milliseconds until the limit resets max_concurrency: :class:`int` The number of identify requests allowed per 5 seconds - - .. versionadded:: 2.5 """ __slots__ = ("total", "remaining", "reset_after", "max_concurrency") diff --git a/discord/sku.py b/discord/sku.py index f3e457505..46bdf94bf 100644 --- a/discord/sku.py +++ b/discord/sku.py @@ -146,12 +146,12 @@ class SKU: Usage :: - async for subscription in sku.subscriptions(limit=100): + async for subscription in sku.subscriptions(limit=100, user=user): print(subscription.user_id, subscription.current_period_end) Flattening into a list :: - subscriptions = [subscription async for subscription in sku.subscriptions(limit=100)] + subscriptions = [subscription async for subscription in sku.subscriptions(limit=100, user=user)] # subscriptions is now a list of Subscription... All parameters are optional.