aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-17 01:16:20 -0400
committerRapptz <[email protected]>2021-06-08 07:25:40 -0400
commitcb9a506686dc2bab83fc735bdf6e7b7bac5b2d19 (patch)
treeae848a6355f7681d9f4775a864a96dafc5ac6952 /discord
parentFix typo in start_private_thread (diff)
downloaddiscord.py-cb9a506686dc2bab83fc735bdf6e7b7bac5b2d19.tar.xz
discord.py-cb9a506686dc2bab83fc735bdf6e7b7bac5b2d19.zip
Fix typo with archived_threads iterator leading to AttributeError
Diffstat (limited to 'discord')
-rw-r--r--discord/iterators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/iterators.py b/discord/iterators.py
index 28e98ec4..ea3a2917 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