From e5c0d7eb7cdc3495993c5412468f0a09be20ec1a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 1 May 2020 03:33:01 +0200 Subject: [PATCH] Show profile picture in the author field and added message id in the footer Signed-off-by: loicbersier --- event/listeners/log/messageUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/listeners/log/messageUpdate.js b/event/listeners/log/messageUpdate.js index 8f54a08c..80417e0e 100644 --- a/event/listeners/log/messageUpdate.js +++ b/event/listeners/log/messageUpdate.js @@ -15,11 +15,11 @@ class messageUpdateListener extends Listener { const channel = this.client.channels.resolve(await logStats.get('channel')); let Embed = this.client.util.embed() .setColor('NAVY') - .setAuthor(`${newMessage.author.username}#${newMessage.author.discriminator}`) + .setAuthor(`${newMessage.author.username}#${newMessage.author.discriminator}`, newMessage.author.displayAvatarURL()) .setTitle(`${newMessage.author.username} modified their message in ${newMessage.channel.name}`) .addField('Previously', oldMessage, true) .addField('Currently', newMessage, true) - .setFooter(`Author ID: ${newMessage.author.id}`) + .setFooter(`Author ID: ${newMessage.author.id}, Message ID: ${newMessage.id}`) .setTimestamp(); channel.send(Embed);