mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Fix exception raised by around strategy when the limit is set to 100/101
This commit is contained in:
parent
252ac38f92
commit
23352fba79
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user