Change how threads are created

Instead of start_public_thread and start_private_thread they'll now be
one method.

I might revert this if starting a public thread without a message never
ends up happening.
This commit is contained in:
Rapptz
2021-05-04 10:09:05 -04:00
parent 40127eb7b5
commit b2176dc0ef
2 changed files with 37 additions and 12 deletions

View File

@ -1430,7 +1430,7 @@ class Message(Hashable):
"""
await self._state.http.clear_reactions(self.channel.id, self.id)
async def start_public_thread(self, *, name: str, auto_archive_duration: ThreadArchiveDuration = 1440) -> Thread:
async def start_thread(self, *, name: str, auto_archive_duration: ThreadArchiveDuration = 1440) -> Thread:
"""|coro|
Starts a public thread from this message.