From df90aaa610a20728435dbb402b67ec860a9ebe1c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 16 May 2017 20:20:39 -0400 Subject: Rename internal ConnectionState attribute to have an underscore. Some people like to use that variable name apparently. See #568 and #569. --- discord/gateway.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'discord/gateway.py') 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)) -- cgit v1.2.3