mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 02:43:01 +00:00
Clarify on_ready
triggering more than twice.
On that note, fix the background_task example to use `Client.run` instead of manual loop management. That way the task will be cleaned up and cancelled inside `Client.run`.
This commit is contained in:
@ -108,6 +108,9 @@ to handle it, which defaults to print a traceback and ignore the exception.
|
||||
.. warning::
|
||||
|
||||
This function is not guaranteed to be the first event called.
|
||||
Likewise, this function is **not** guaranteed to only be called
|
||||
once. This library implements reconnection logic and thus will
|
||||
end up calling this event whenever a RESUME request fails.
|
||||
|
||||
.. function:: on_resumed()
|
||||
|
||||
|
Reference in New Issue
Block a user