mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-29 16:09:05 +00:00
Allow HistoryIterator to take limit of 1 even when around is passed
This commit is contained in:
1 parent
14f80fce45
commit
0a24e3716e
1 file changed
-2
@@ -237,8 +237,6 @@ class HistoryIterator(_AsyncIterator):
|
||||
raise ValueError("history max limit 101 when specifying around parameter")
|
||||
elif self.limit == 101:
|
||||
self.limit = 100 # Thanks discord
|
||||
elif self.limit == 1:
|
||||
raise ValueError("Use fetch_message.")
|
||||
|
||||
self._retrieve_messages = self._retrieve_messages_around_strategy
|
||||
if self.before and self.after:
|
||||
|
||||
Reference in new issue
Block a user