From 31a34ad7c5b6124db568e99c75ece3e4fced94c6 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Sun, 22 Jun 2025 23:53:08 +0200 Subject: [PATCH] Fix limit always being set to --- discord/abc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index a601f57ca..4e13973f5 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1772,13 +1772,13 @@ class Messageable: else None ) while True: - limit = max_limit if limit is None else min(limit, max_limit) - if limit < 1: + retrieve = max_limit if limit is None else min(limit, max_limit) + if retrieve < 1: return data = await self._state.http.pins_from( channel_id=channel.id, - limit=limit, + limit=retrieve, before=time, )