aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py6
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))