refactor(Message): combine patch methods (#6071)

This commit is contained in:
ckohen
2021-07-22 01:05:38 -07:00
committed by GitHub
parent 328501bd8e
commit cd47a524af
3 changed files with 171 additions and 157 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.patch(data);
const old = message._update(data, true);
return {
old,
updated: message,