Fix Client.fetch_channel not returning Thread

This commit is contained in:
Alex Nørgaard
2021-07-04 02:35:31 +01:00
committed by GitHub
parent 097b6064f1
commit d1dc41ec2f
7 changed files with 22 additions and 15 deletions

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)