diff options
| author | Rapptz <[email protected]> | 2021-07-28 23:46:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-28 23:50:02 -0400 |
| commit | dac0267e28ecaef1ba0b25eda25c1ef073ecaeb0 (patch) | |
| tree | f70f0b50299998fd81f20034b7719f2176239723 /discord/message.py | |
| parent | Use a default value for StageInstance.discoverable_enabled (diff) | |
| download | discord.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.py | 3 |
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 |