aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorJames Gayfer <[email protected]>2021-08-26 12:53:21 -0700
committerGitHub <[email protected]>2021-08-26 15:53:21 -0400
commit4aafa39e8ca7fcdc7acd34295eed41bd3700d44b (patch)
treed8eff72e401238faed88484a8bd18687943dd8fb /discord/channel.py
parentAdd support for invitable thread option (diff)
downloaddiscord.py-4aafa39e8ca7fcdc7acd34295eed41bd3700d44b.tar.xz
discord.py-4aafa39e8ca7fcdc7acd34295eed41bd3700d44b.zip
Update thread permissions
Discord has renamed / repurposed "Use Public Threads" and "Use Private Threads", as well as added a new permission "Send Messages in Threads". For more information, see: https://github.com/discord/discord-api-docs/pull/3672
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 6e025a99..be3315cf 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -684,15 +684,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
Creates a thread in this text channel.
- If no starter message is passed with the ``message`` parameter then
- you must have :attr:`~discord.Permissions.send_messages` and
- :attr:`~discord.Permissions.use_private_threads` in order to create the thread
- if the ``type`` parameter is :attr:`~discord.ChannelType.private_thread`.
- Otherwise :attr:`~discord.Permissions.use_threads` is needed.
-
- If a starter message is passed with the ``message`` parameter then
- you must have :attr:`~discord.Permissions.send_messages` and
- :attr:`~discord.Permissions.use_threads` in order to create the thread.
+ To create a public thread, you must have :attr:`~discord.Permissions.create_public_threads`.
+ For a private thread, :attr:`~discord.Permissions.create_private_threads` is needed instead.
.. versionadded:: 2.0