|
@ -726,8 +726,8 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { |
|
|
if (editedMessage !== originalMessage) { |
|
|
if (editedMessage !== originalMessage) { |
|
|
editEmbed.addField("Message", `<< ${originalMessage}\n>> ${editedMessage}`) |
|
|
editEmbed.addField("Message", `<< ${originalMessage}\n>> ${editedMessage}`) |
|
|
} |
|
|
} |
|
|
if (editedMessage.attachments) { |
|
|
if (editedMessage.attachments.array().length) { |
|
|
editEmbed.addField("Attachments", editedMessage.attachments.array().map(`[${a.name}](${a.url})`).join(' • ')) |
|
|
editEmbed.addField("Attachments", editedMessage.attachments.array().map(a => `[${a.name}](${a.url})`).join(' • ')) |
|
|
} |
|
|
} |
|
|
collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => { |
|
|
collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => { |
|
|
if (error) { |
|
|
if (error) { |
|
|