diff options
| author | Rapptz <[email protected]> | 2021-04-16 05:13:31 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 07:25:40 -0400 |
| commit | 7c6724fdd7d35b56850993c3ba9a4e472ac26ce8 (patch) | |
| tree | 1a675e4af1b520f6185a36a73c46cb4f6623d228 | |
| parent | [types] Fix some minor ordering mishap on MessageType (diff) | |
| download | discord.py-7c6724fdd7d35b56850993c3ba9a4e472ac26ce8.tar.xz discord.py-7c6724fdd7d35b56850993c3ba9a4e472ac26ce8.zip | |
Fix typo in start_private_thread
This also renames archive_threads to archived_threads
| -rw-r--r-- | discord/channel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/channel.py b/discord/channel.py index 0e28f52b..290da664 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -613,7 +613,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): Starting the thread failed. """ - data = await self._state.http.start_public_thread( + data = await self._state.http.start_private_thread( self.id, name=name, 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) - async def archive_threads( + async def archived_threads( self, *, private: bool = True, |