aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-04 04:50:07 -0400
committerRapptz <[email protected]>2021-07-04 04:55:12 -0400
commit828e47d83f26cf4a81e8de2ab1b9c1dcb18d84f3 (patch)
tree0cd4d41a8c86cbaf72e1501e3c4f3a215cdb9824
parentAdd a warning in on_interaction (diff)
downloaddiscord.py-828e47d83f26cf4a81e8de2ab1b9c1dcb18d84f3.tar.xz
discord.py-828e47d83f26cf4a81e8de2ab1b9c1dcb18d84f3.zip
Document on_thread_join also applying to thread creation
-rw-r--r--docs/api.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 17a270a2..5961ee06 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -669,7 +669,8 @@ to handle it, which defaults to print a traceback and ignoring the exception.
.. function:: on_thread_join(thread)
- Called whenever a thread is joined.
+ Called whenever a thread is joined or created. Note that from the API's perspective there is no way to
+ differentiate between a thread being created or the bot joining a thread.
Note that you can get the guild from :attr:`Thread.guild`.