Use copy.copy instead of copy.deepcopy for on_message_edit.
This commit is contained in:
parent
343e3376ea
commit
d3ac141b0f
@ -184,7 +184,7 @@ class ConnectionState(object):
|
|||||||
older_message = self._get_message(data.get('id'))
|
older_message = self._get_message(data.get('id'))
|
||||||
if older_message is not None:
|
if older_message is not None:
|
||||||
# create a copy of the new message
|
# create a copy of the new message
|
||||||
message = copy.deepcopy(older_message)
|
message = copy.copy(older_message)
|
||||||
# update the new update
|
# update the new update
|
||||||
for attr in data:
|
for attr in data:
|
||||||
if attr == 'channel_id' or attr == 'author':
|
if attr == 'channel_id' or attr == 'author':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user