From 99e32a75cad3ab1ddd6a0a1f84611758552ab428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Thu, 26 Dec 2024 21:15:10 +0000 Subject: [PATCH 1/2] Fix typo in async pagination of entitlements loop --- discord/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index ff02bf7b6f00..529c2fc49849 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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: From 5052b5ba58a79bfb2ab43885459f6bf3a0c9706f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Thu, 26 Dec 2024 21:50:24 +0000 Subject: [PATCH 2/2] fix len check on async iter --- discord/sku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/sku.py b/discord/sku.py index f3e457505354..444a66714547 100644 --- a/discord/sku.py +++ b/discord/sku.py @@ -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: