mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Rename internal ConnectionState attribute to have an underscore.
Some people like to use that variable name apparently. See #568 and #569.
This commit is contained in:
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user