Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit 0a24e37

Browse files
ranileRapptz
authored andcommitted
Allow HistoryIterator to take limit of 1 even when around is passed
1 parent 14f80fc commit 0a24e37

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

discord/iterators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ def __init__(self, messageable, limit,
237237
raise ValueError("history max limit 101 when specifying around parameter")
238238
elif self.limit == 101:
239239
self.limit = 100 # Thanks discord
240-
elif self.limit == 1:
241-
raise ValueError("Use fetch_message.")
242240

243241
self._retrieve_messages = self._retrieve_messages_around_strategy
244242
if self.before and self.after:

0 commit comments

Comments
 (0)