We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402b78d commit b8726dbCopy full SHA for b8726db
discord/iterators.py
@@ -1249,7 +1249,7 @@ async def fill_queue(self) -> None:
1249
channel = await self._channel._get_channel()
1250
self.channel = channel
1251
1252
- limit = 50 if self.limit is None else max(self.limit, 50)
+ limit = 50 if self.limit is None else min(self.limit, 50)
1253
data = await self.endpoint(self.channel.id, before=self.before, limit=limit)
1254
1255
pins: list[MessagePinPayload] = data.get("items", [])
0 commit comments