Allow HistoryIterator to take limit of 1 even when around is passed

This commit is contained in:
hamza1311 2020-04-19 01:40:36 +05:00 committed by Rapptz
parent 14f80fce45
commit 0a24e3716e

View File

@ -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: