diff options
| author | Rapptz <[email protected]> | 2019-03-18 05:29:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-18 05:29:38 -0400 |
| commit | 963cf4b34e1de5cba4879689894f6ccb84cf3d9f (patch) | |
| tree | bd4fb32a226652540e81f23cbc9ddab79c422da6 /discord/client.py | |
| parent | [commands] Walk through MRO for Cog derived classes. (diff) | |
| download | discord.py-963cf4b34e1de5cba4879689894f6ccb84cf3d9f.tar.xz discord.py-963cf4b34e1de5cba4879689894f6ccb84cf3d9f.zip | |
Add on_disconnect event.
I assume this is where it has to be. Fix #1937
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index 7f9e2c30..b8b4e051 100644 --- a/discord/client.py +++ b/discord/client.py @@ -409,6 +409,7 @@ class Client: websockets.InvalidHandshake, websockets.WebSocketProtocolError) as exc: + self.dispatch('disconnect') if not reconnect: await self.close() if isinstance(exc, ConnectionClosed) and exc.code == 1000: |