From 6b90fbd8d4c686e5784ca6e0cec109d6c1f934ed Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 2 Oct 2022 16:32:04 -0600 Subject: [PATCH] fix edits not being marked --- src/lib/messages.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/messages.js b/src/lib/messages.js index 296cfd8..55c035d 100644 --- a/src/lib/messages.js +++ b/src/lib/messages.js @@ -335,7 +335,11 @@ function processMessage(msg, options) { formatMessage({ name: msg.author.username, bot: msg.author.bot, - content: line, + content: + line + + (msg.editedTimestamp != null && index == lines.length - 1 + ? " (edited)" + : ""), attachments: index == lines.length - 1 ? msg.attachments : [], stickers: index == lines.length - 1 ? msg.stickerItems : [], reply: index == 0 ? msg.referencedMessage : null, @@ -347,7 +351,7 @@ function processMessage(msg, options) { formatMessage({ name: msg.author.username, bot: msg.author.bot, - content: msg.content, + content: msg.content + (msg.editedTimestamp != null ? " (edited)" : ""), attachments: msg.attachments, stickers: msg.stickerItems, reply: msg.referencedMessage,