Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Document on_thread_join also applying to thread creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jul 4, 2021
1 parent 23a6914 commit 828e47d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 828e47d

Please sign in to comment.