aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-04 10:04:38 -0400
committerRapptz <[email protected]>2021-06-08 07:26:22 -0400
commit40127eb7b50025257cad457ae39c5af097322193 (patch)
tree4774d0e5eb089baec450b259db28a09bd7a2f308
parentAdd __repr__ for the thread classes (diff)
downloaddiscord.py-40127eb7b50025257cad457ae39c5af097322193.tar.xz
discord.py-40127eb7b50025257cad457ae39c5af097322193.zip
Fix import error with threads archived iterator
-rw-r--r--discord/iterators.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/iterators.py b/discord/iterators.py
index ea3a2917..2f272b70 100644
--- a/discord/iterators.py
+++ b/discord/iterators.py
@@ -749,4 +749,5 @@ class ArchivedThreadIterator(_AsyncIterator['Thread']):
self.before = self.update_before(threads[-1])
def create_thread(self, data: ThreadPayload) -> Thread:
+ from .threads import Thread
return Thread(guild=self.guild, data=data)