mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
feat(Message): add messageEditHistoryMaxSize to limit stored msg edits (#4867)
This commit is contained in:
committed by
GitHub
parent
4a6fb9a7d4
commit
c412cd7521
@@ -9,9 +9,9 @@ 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) {
|
||||
message.patch(data);
|
||||
const old = message.patch(data);
|
||||
return {
|
||||
old: message._edits[0],
|
||||
old,
|
||||
updated: message,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user