mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Set thread related perms in private channels to False
This commit is contained in:
@ -2812,11 +2812,19 @@ class DMChannel(discord.abc.Messageable, discord.abc.PrivateChannel, Hashable):
|
||||
|
||||
- :attr:`~Permissions.send_tts_messages`: You cannot send TTS messages in a DM.
|
||||
- :attr:`~Permissions.manage_messages`: You cannot delete others messages in a DM.
|
||||
- :attr:`~Permissions.create_private_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.create_public_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.manage_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.send_messages_in_threads`: There are no threads in a DM.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
|
||||
``obj`` parameter is now positional-only.
|
||||
|
||||
.. versionchanged:: 2.1
|
||||
|
||||
Thread related permissions are now set to ``False``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
obj: :class:`User`
|
||||
@ -2978,6 +2986,10 @@ class GroupChannel(discord.abc.Messageable, discord.abc.PrivateChannel, Hashable
|
||||
|
||||
- :attr:`~Permissions.send_tts_messages`: You cannot send TTS messages in a DM.
|
||||
- :attr:`~Permissions.manage_messages`: You cannot delete others messages in a DM.
|
||||
- :attr:`~Permissions.create_private_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.create_public_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.manage_threads`: There are no threads in a DM.
|
||||
- :attr:`~Permissions.send_messages_in_threads`: There are no threads in a DM.
|
||||
|
||||
This also checks the kick_members permission if the user is the owner.
|
||||
|
||||
@ -2985,6 +2997,10 @@ class GroupChannel(discord.abc.Messageable, discord.abc.PrivateChannel, Hashable
|
||||
|
||||
``obj`` parameter is now positional-only.
|
||||
|
||||
.. versionchanged:: 2.1
|
||||
|
||||
Thread related permissions are now set to ``False``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
obj: :class:`~discord.abc.Snowflake`
|
||||
|
Reference in New Issue
Block a user