Tweak edit/delete formatting
parent
a4c7b84616
commit
7c96d71efe
|
@ -120,15 +120,15 @@ const defaultFormatters = {
|
||||||
|
|
||||||
formatStaffReplyEditNotificationThreadMessage(threadMessage, newText, moderator) {
|
formatStaffReplyEditNotificationThreadMessage(threadMessage, newText, moderator) {
|
||||||
let content = `**${moderator.user.username}#${moderator.user.discriminator}** (\`${moderator.id}\`) edited reply \`[${threadMessage.message_number}]\`:`;
|
let content = `**${moderator.user.username}#${moderator.user.discriminator}** (\`${moderator.id}\`) edited reply \`[${threadMessage.message_number}]\`:`;
|
||||||
content += `\n\`B:\` ${threadMessage.body}`;
|
content += `\n\nBefore:\n\`\`\`${utils.disableCodeBlocks(threadMessage.body)}\`\`\``;
|
||||||
content += `\n\`A:\` ${newText}`;
|
content += `\nAfter:\n\`\`\`${utils.disableCodeBlocks(newText)}\`\`\``;
|
||||||
return utils.disableLinkPreviews(content);
|
return content;
|
||||||
},
|
},
|
||||||
|
|
||||||
formatStaffReplyDeletionNotificationThreadMessage(threadMessage, moderator) {
|
formatStaffReplyDeletionNotificationThreadMessage(threadMessage, moderator) {
|
||||||
let content = `**${moderator.user.username}#${moderator.user.discriminator} (\`${moderator.id}\`) deleted reply \`[${threadMessage.message_number}]\`:**`;
|
let content = `**${moderator.user.username}#${moderator.user.discriminator}** (\`${moderator.id}\`) deleted reply \`[${threadMessage.message_number}]\`:`;
|
||||||
content += `\n\`B:\` ${threadMessage.body}`;
|
content += "```" + utils.disableCodeBlocks(threadMessage.body) + "```";
|
||||||
return utils.disableLinkPreviews(content);
|
return content;
|
||||||
},
|
},
|
||||||
|
|
||||||
formatLog(thread, threadMessages, opts = {}) {
|
formatLog(thread, threadMessages, opts = {}) {
|
||||||
|
|
Loading…
Reference in New Issue