From 8974dffc4e22ed72fa229d385b2ae2a7d2943440 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 11 Jan 2016 14:44:13 -0500 Subject: Change internal update functions to have a leading underscore. --- discord/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/state.py') diff --git a/discord/state.py b/discord/state.py index c9d1f6d1..54770292 100644 --- a/discord/state.py +++ b/discord/state.py @@ -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): -- cgit v1.2.3