mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
refactor(Message): combine patch methods (#6071)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user