Browse Source

Use diff format for message edits

master
Abheek Dhawan 4 years ago
parent
commit
8a9c9c1c79
  1. 2
      bot.js

2
bot.js

@ -724,7 +724,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
.setColor('c9ff00'); .setColor('c9ff00');
if (editedMessage !== originalMessage) { if (editedMessage !== originalMessage) {
editEmbed.addField("Message", `<< ${originalMessage}\n>> ${editedMessage}`) editEmbed.addField("Message", `\`\`\`diff\n+${originalMessage}\n+${editedMessage}\`\`\``)
} }
if (editedMessage.attachments) { if (editedMessage.attachments) {
editEmbed.addField("Attachments", editedMessage.attachments.array().map(`[${a.name}](${a.url})`).join(' • ')) editEmbed.addField("Attachments", editedMessage.attachments.array().map(`[${a.name}](${a.url})`).join(' • '))

Loading…
Cancel
Save