Skip to content

Commit

Permalink
Fix bug due to typo in async pagination of entitlements loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra authored Jan 15, 2025
1 parent 55974eb commit cf6d7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2955,7 +2955,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

0 comments on commit cf6d7ff

Please sign in to comment.