From 7c96d71efee91fa8186c4d25f6328458cb0bf9f7 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 14 Aug 2020 01:19:01 +0300 Subject: [PATCH] Tweak edit/delete formatting --- src/formatters.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/formatters.js b/src/formatters.js index 3e36e48..e329685 100644 --- a/src/formatters.js +++ b/src/formatters.js @@ -120,15 +120,15 @@ const defaultFormatters = { formatStaffReplyEditNotificationThreadMessage(threadMessage, newText, moderator) { let content = `**${moderator.user.username}#${moderator.user.discriminator}** (\`${moderator.id}\`) edited reply \`[${threadMessage.message_number}]\`:`; - content += `\n\`B:\` ${threadMessage.body}`; - content += `\n\`A:\` ${newText}`; - return utils.disableLinkPreviews(content); + content += `\n\nBefore:\n\`\`\`${utils.disableCodeBlocks(threadMessage.body)}\`\`\``; + content += `\nAfter:\n\`\`\`${utils.disableCodeBlocks(newText)}\`\`\``; + return content; }, formatStaffReplyDeletionNotificationThreadMessage(threadMessage, moderator) { - let content = `**${moderator.user.username}#${moderator.user.discriminator} (\`${moderator.id}\`) deleted reply \`[${threadMessage.message_number}]\`:**`; - content += `\n\`B:\` ${threadMessage.body}`; - return utils.disableLinkPreviews(content); + let content = `**${moderator.user.username}#${moderator.user.discriminator}** (\`${moderator.id}\`) deleted reply \`[${threadMessage.message_number}]\`:`; + content += "```" + utils.disableCodeBlocks(threadMessage.body) + "```"; + return content; }, formatLog(thread, threadMessages, opts = {}) {