aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorAlex Nørgaard <[email protected]>2021-07-04 02:35:31 +0100
committerGitHub <[email protected]>2021-07-03 21:35:31 -0400
commitd1dc41ec2f6e0e6e6489151f33a39b7fccfc8f6f (patch)
tree1f3e91c728e87df04dcb32fcda5927af719004ed /discord/message.py
parentFix ui.Button constructor default style to match the decorator (diff)
downloaddiscord.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.py2
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|