Use copy.copy instead of copy.deepcopy for on_message_edit.
This commit is contained in:
1 parent
343e3376ea
commit
d3ac141b0f
1 file changed
+1
-1
+1
-1
@@ -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':
|
||||
|
||||
Reference in new issue
Block a user