diff options
| author | Alex Nørgaard <[email protected]> | 2021-07-04 02:35:31 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-03 21:35:31 -0400 |
| commit | d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f (patch) | |
| tree | 1f3e91c728e87df04dcb32fcda5927af719004ed /discord/message.py | |
| parent | Fix ui.Button constructor default style to match the decorator (diff) | |
| download | discord.py-d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f.tar.xz discord.py-d1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f.zip | |
Fix Client.fetch_channel not returning Thread
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py index 825bda4d..b4604b38 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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| |