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:
parent
db9c2aa8ee
commit
e5c0d7eb7c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue