aboutsummaryrefslogtreecommitdiff
path: root/discord/iterators.py
diff options
context:
space:
mode:
authorhamza1311 <[email protected]>2020-04-19 01:40:36 +0500
committerRapptz <[email protected]>2020-04-19 18:19:11 -0400
commit0a24e3716e043e951fffc03d9c549d643e086c3c (patch)
tree4c0af3342a2f41fc36aed8aa6e0f557e54dbe6ae /discord/iterators.py
parentFix PartialEmoji.url.read for reactions (diff)
downloaddiscord.py-0a24e3716e043e951fffc03d9c549d643e086c3c.tar.xz
discord.py-0a24e3716e043e951fffc03d9c549d643e086c3c.zip
Allow HistoryIterator to take limit of 1 even when around is passed
Diffstat (limited to 'discord/iterators.py')
-rw-r--r--discord/iterators.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/discord/iterators.py b/discord/iterators.py
index 032174ae..ad8828ff 100644
--- a/discord/iterators.py
+++ b/discord/iterators.py
@@ -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: