aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-28 23:46:47 -0400
committerRapptz <[email protected]>2021-07-28 23:50:02 -0400
commitdac0267e28ecaef1ba0b25eda25c1ef073ecaeb0 (patch)
treef70f0b50299998fd81f20034b7719f2176239723 /discord/message.py
parentUse a default value for StageInstance.discoverable_enabled (diff)
downloaddiscord.py-dac0267e28ecaef1ba0b25eda25c1ef073ecaeb0.tar.xz
discord.py-dac0267e28ecaef1ba0b25eda25c1ef073ecaeb0.zip
Allow creating a public thread without a starter message
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py
index 18c4658e..82f812db 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -1511,12 +1511,11 @@ class Message(Hashable):
if self.guild is None:
raise InvalidArgument('This message does not have guild info attached.')
- data = await self._state.http.start_public_thread(
+ data = await self._state.http.start_thread_with_message(
self.channel.id,
self.id,
name=name,
auto_archive_duration=auto_archive_duration,
- type=ChannelType.public_thread.value,
)
return Thread(guild=self.guild, state=self._state, data=data) # type: ignore