Browse Source

Fix limit always being set to <max limit>

pull/10205/head
Soheab_ 4 weeks ago
parent
commit
31a34ad7c5
  1. 6
      discord/abc.py

6
discord/abc.py

@ -1772,13 +1772,13 @@ class Messageable:
else None else None
) )
while True: while True:
limit = max_limit if limit is None else min(limit, max_limit) retrieve = max_limit if limit is None else min(limit, max_limit)
if limit < 1: if retrieve < 1:
return return
data = await self._state.http.pins_from( data = await self._state.http.pins_from(
channel_id=channel.id, channel_id=channel.id,
limit=limit, limit=retrieve,
before=time, before=time,
) )

Loading…
Cancel
Save