Add logout support and on_disconnect event.

This commit is contained in:
Rapptz
2015-08-24 00:00:42 -04:00
parent 35084cf98a
commit 9f601a24b1
2 changed files with 17 additions and 2 deletions

View File

@ -26,6 +26,10 @@ All events are 'sandboxed', in that if an exception is thrown while the event is
Called when the client is done preparing the data received from Discord. Usually after login is successful
and the :attr:`Client.servers` and co. are filled up.
.. function:: on_disconnect()
Called when the client disconnects for whatever reason. Be it error or manually.
.. function:: on_message(message)
Called when a message is created and sent to a server.