From 2f98cf4a99d041fdb72287d982edca0a9942be18 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 6 May 2023 19:20:37 +1000 Subject: [PATCH] Fix exception raised by around strategy when the limit is set to 100/101 --- discord/abc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index f6e687a43..01e311feb 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -2121,12 +2121,12 @@ class Messageable: async def _around_strategy(retrieve: int, around: Optional[Snowflake], limit: Optional[int]): if not around: - return [] + return [], None, 0 around_id = around.id if around else None data = await self._state.http.logs_from(channel.id, retrieve, around=around_id) - return data, None, limit + return data, None, 0 async def _after_strategy(retrieve: int, after: Optional[Snowflake], limit: Optional[int]): after_id = after.id if after else None