From cb9a506686dc2bab83fc735bdf6e7b7bac5b2d19 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 17 Apr 2021 01:16:20 -0400 Subject: [PATCH] Fix typo with archived_threads iterator leading to AttributeError --- discord/iterators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/iterators.py b/discord/iterators.py index 28e98ec46..ea3a29179 100644 --- a/discord/iterators.py +++ b/discord/iterators.py @@ -705,7 +705,7 @@ class ArchivedThreadIterator(_AsyncIterator['Thread']): elif private: self.endpoint = self.http.get_private_archived_threads else: - self.endpoint = self.http.get_archived_threads + self.endpoint = self.http.get_public_archived_threads self.queue: asyncio.Queue[Thread] = asyncio.Queue() self.has_more: bool = True