From 6a9e55ade065407713c32584c289a0def049c126 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Mon, 24 Jul 2017 02:09:39 +0300 Subject: [PATCH] Make edit notification prefixes the same length From "Before" and "After" to "B" and "A" respectively. Makes it easier to compare small edits. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 14dafd0..6f6620c 100644 --- a/src/index.js +++ b/src/index.js @@ -213,7 +213,7 @@ bot.on('messageUpdate', (msg, oldMessage) => { threads.getForUser(bot, msg.author).then(thread => { if (! thread) return; - const editMessage = utils.disableLinkPreviews(`**The user edited their message:**\n**Before:** ${oldContent}\n**After:** ${newContent}`); + const editMessage = utils.disableLinkPreviews(`**The user edited their message:**\n**B:** ${oldContent}\n**A:** ${newContent}`); bot.createMessage(thread.channelId, editMessage); });