Change internal update functions to have a leading underscore.

This commit is contained in:
Rapptz
2016-01-11 14:44:13 -05:00
parent c49efc5412
commit 8974dffc4e
5 changed files with 9 additions and 9 deletions

View File

@ -173,7 +173,7 @@ class ConnectionState:
channel = server.get_channel(channel_id)
if channel is not None:
old_channel = copy.copy(channel)
channel.update(server=server, **data)
channel._update(server=server, **data)
self.dispatch('channel_update', old_channel, channel)
def parse_channel_create(self, data):
@ -322,7 +322,7 @@ class ConnectionState:
role = utils.find(lambda r: r.id == role_id, server.roles)
if role is not None:
old_role = copy.copy(role)
role.update(**data['role'])
role._update(**data['role'])
self.dispatch('server_role_update', old_role, role)
def parse_voice_state_update(self, data):