diff options
| author | Rapptz <[email protected]> | 2016-01-11 14:44:13 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-11 14:44:13 -0500 |
| commit | 8974dffc4e22ed72fa229d385b2ae2a7d2943440 (patch) | |
| tree | f47fbd37891ad77a125b0bb6e6f9838e0cbcddc4 /discord/state.py | |
| parent | [commands] Add Command.cog_name to get the cog name it belongs to. (diff) | |
| download | discord.py-8974dffc4e22ed72fa229d385b2ae2a7d2943440.tar.xz discord.py-8974dffc4e22ed72fa229d385b2ae2a7d2943440.zip | |
Change internal update functions to have a leading underscore.
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): |