Document behavior of on_disconnect

This commit is contained in:
Sebastian Law authored and GitHub committed 2021-02-20 20:47:29 -05:00
1 parent 27c7fb6aed
commit b86073fac3
1 file changed
+4 -4
+4 -4
View File
@@ -200,11 +200,11 @@ to handle it, which defaults to print a traceback and ignoring the exception.
.. function:: on_disconnect() .. function:: on_disconnect()
Called when the client has disconnected from Discord. This could happen either through Called when the client has disconnected from Discord, or a connection attempt to Discord has failed.
the internet being disconnected, explicit calls to logout, or Discord terminating the connection This could happen either through the internet being disconnected, explicit calls to logout,
one way or the other. or Discord terminating the connection one way or the other.
This function can be called many times. This function can be called many times without a corresponding :func:`on_connect` call.
.. function:: on_shard_disconnect(shard_id) .. function:: on_shard_disconnect(shard_id)