Fix Client.fetch_channel not returning Thread

This commit is contained in:
Alex Nørgaard authored and GitHub committed 2021-07-03 21:35:31 -04:00
1 parent 097b6064f1
commit d1dc41ec2f
7 files changed
+22 -15

No files matched your search

+1 -1
View File
@@ -750,4 +750,4 @@ class ArchivedThreadIterator(_AsyncIterator['Thread']):
def create_thread(self, data: ThreadPayload) -> Thread:
from .threads import Thread
return Thread(guild=self.guild, data=data)
return Thread(guild=self.guild, state=self.guild._state, data=data)