diff options
| author | Rapptz <[email protected]> | 2017-05-16 20:20:39 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-16 20:20:39 -0400 |
| commit | df90aaa610a20728435dbb402b67ec860a9ebe1c (patch) | |
| tree | 03dafa18e552b122884cd8bd319988b8a8de00a9 /discord/gateway.py | |
| parent | Highlight currently visited section. (diff) | |
| download | discord.py-df90aaa610a20728435dbb402b67ec860a9ebe1c.tar.xz discord.py-df90aaa610a20728435dbb402b67ec860a9ebe1c.zip | |
Rename internal ConnectionState attribute to have an underscore.
Some people like to use that variable name apparently.
See #568 and #569.
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 95749f0b..56d26c02 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -195,15 +195,15 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): # dynamically add attributes needed ws.token = client.http.token - ws._connection = client.connection + ws._connection = client._connection ws._dispatch = client.dispatch ws.gateway = gateway ws.shard_id = shard_id - ws.shard_count = client.connection.shard_count + ws.shard_count = client._connection.shard_count ws.session_id = session ws.sequence = sequence - client.connection._update_references(ws) + client._connection._update_references(ws) log.info('Created websocket connected to {}'.format(gateway)) |