diff options
Diffstat (limited to 'discord/state.py')
| -rw-r--r-- | discord/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |