Fix typo in start_private_thread

This also renames archive_threads to archived_threads
This commit is contained in:
Rapptz 2021-04-16 05:13:31 -04:00
parent 9d3962aa7a
commit 7c6724fdd7

View File

@ -613,7 +613,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
Starting the thread failed. Starting the thread failed.
""" """
data = await self._state.http.start_public_thread( data = await self._state.http.start_private_thread(
self.id, self.id,
name=name, name=name,
auto_archive_duration=auto_archive_duration, auto_archive_duration=auto_archive_duration,
@ -621,7 +621,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
) )
return Thread(guild=self.guild, data=data) return Thread(guild=self.guild, data=data)
async def archive_threads( async def archived_threads(
self, self,
*, *,
private: bool = True, private: bool = True,