Browse Source

Fix typo in start_private_thread

This also renames archive_threads to archived_threads
feature/threads
Rapptz 4 years ago
parent
commit
7c6724fdd7
  1. 4
      discord/channel.py

4
discord/channel.py

@ -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,

Loading…
Cancel
Save