From 0a24e3716e043e951fffc03d9c549d643e086c3c Mon Sep 17 00:00:00 2001 From: hamza1311 <47357913+hamza1311@users.noreply.github.com> Date: Sun, 19 Apr 2020 01:40:36 +0500 Subject: [PATCH] Allow HistoryIterator to take limit of 1 even when around is passed --- discord/iterators.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/discord/iterators.py b/discord/iterators.py index 032174aec..ad8828ff7 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: