diff options
| author | Rapptz <[email protected]> | 2015-11-30 07:38:48 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-11-30 07:38:48 -0500 |
| commit | d3ac141b0ff799024de99c48f7c3bafe1dca6eba (patch) | |
| tree | 89b324a20aa1d73c26b80e8e45e415b80b13a5bf | |
| parent | on_member_update now takes in the older member state as a parameter. (diff) | |
| download | discord.py-d3ac141b0ff799024de99c48f7c3bafe1dca6eba.tar.xz discord.py-d3ac141b0ff799024de99c48f7c3bafe1dca6eba.zip | |
Use copy.copy instead of copy.deepcopy for on_message_edit.
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index 555fd336..0ad69cc2 100644 --- a/discord/client.py +++ b/discord/client.py @@ -184,7 +184,7 @@ class ConnectionState(object): older_message = self._get_message(data.get('id')) if older_message is not None: # create a copy of the new message - message = copy.deepcopy(older_message) + message = copy.copy(older_message) # update the new update for attr in data: if attr == 'channel_id' or attr == 'author': |