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

@ -1491,7 +1491,7 @@ class Message(Hashable):
auto_archive_duration=auto_archive_duration,
type=ChannelType.public_thread.value,
)
return Thread(guild=self.guild, data=data) # type: ignore
return Thread(guild=self.guild, state=self._state, data=data) # type: ignore
async def reply(self, content: Optional[str] = None, **kwargs) -> Message:
"""|coro|