From 23352fba7949a491257cc06d2d88377035f0a39f 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 c6b63920f..4fd92e121 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1722,12 +1722,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