Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug due to typo in async pagination of entitlements loop #10051

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,7 @@ async def _after_strategy(retrieve: int, after: Optional[Snowflake], limit: Opti
data, state, limit = await strategy(retrieve, state, limit)

# Terminate loop on next iteration; there's no data left after this
if len(data) < 1000:
if len(data) < 100:
limit = 0

for e in data:
Expand Down
2 changes: 1 addition & 1 deletion discord/sku.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def _after_strategy(retrieve: int, after: Optional[Snowflake], limit: Opti
data, state, limit = await strategy(retrieve, state, limit)

# Terminate loop on next iteration; there's no data left after this
if len(data) < 1000:
if len(data) < 100:
limit = 0

for e in data:
Expand Down
Loading