Show profile picture in the author field and added message id in the footer

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-05-01 03:33:01 +02:00
parent db9c2aa8ee
commit e5c0d7eb7c

View file

@ -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);