diff options
| author | Rapptz <[email protected]> | 2021-05-04 08:13:33 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 07:26:18 -0400 |
| commit | 4a4e73ec145e9f99c876a711ce6773197758424c (patch) | |
| tree | c3ece826d292c9c7fecbda6c4b3e06436b7fd4fc /docs | |
| parent | Allow Message.channel to be a thread (diff) | |
| download | discord.py-4a4e73ec145e9f99c876a711ce6773197758424c.tar.xz discord.py-4a4e73ec145e9f99c876a711ce6773197758424c.zip | |
Update thread typings and payloads to match documentation
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/docs/api.rst b/docs/api.rst index c0c60d8c..4282373e 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1065,6 +1065,12 @@ of :class:`enum.Enum`. .. versionadded:: 1.7 + .. attribute:: news_thread + + A news thread + + .. versionadded:: 2.0 + .. attribute:: public_thread A public thread @@ -1096,12 +1102,12 @@ of :class:`enum.Enum`. The default message type. This is the same as regular messages. .. attribute:: recipient_add - The system message when a recipient is added to a group private - message, i.e. a private channel of type :attr:`ChannelType.group`. + The system message when a user is added to a group private + message or a thread. .. attribute:: recipient_remove - The system message when a recipient is removed from a group private - message, i.e. a private channel of type :attr:`ChannelType.group`. + The system message when a user is removed from a group private + message or a thread. .. attribute:: call The system message denoting call state, e.g. missed call, started call, @@ -1170,7 +1176,10 @@ of :class:`enum.Enum`. .. versionadded:: 1.7 .. attribute:: thread_created - The system message denoting that a thread has been created + The system message denoting that a thread has been created. This is only + sent if the thread has been created from an older message. The period of time + required for a message to be considered old cannot be relied upon and is up to + Discord. .. versionadded:: 2.0 .. attribute:: reply @@ -1190,8 +1199,8 @@ of :class:`enum.Enum`. .. versionadded:: 2.0 .. attribute:: thread_starter_message - The system message denoting that this message is the one that started a thread's - conversation topic. + The system message denoting the message in the thread that is the one that started the + thread's conversation topic. .. versionadded:: 2.0 |