fix(Message): avoid overwriting properties in _patch (#6738)

This commit is contained in:
SpaceEEC
2021-10-03 15:27:00 +02:00
committed by GitHub
parent 6e5c768379
commit a8c21cd754
3 changed files with 62 additions and 58 deletions

View File

@@ -9,7 +9,7 @@ class MessageUpdateAction extends Action {
const { id, channel_id, guild_id, author, timestamp, type } = data;
const message = this.getMessage({ id, channel_id, guild_id, author, timestamp, type }, channel);
if (message) {
const old = message._update(data, true);
const old = message._update(data);
return {
old,
updated: message,