Tweak edit/delete formatting

cshd
Dragory 2020-08-14 01:19:01 +03:00
parent a4c7b84616
commit 7c96d71efe
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 6 additions and 6 deletions

View File

@ -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 = {}) {