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'));
|
const channel = this.client.channels.resolve(await logStats.get('channel'));
|
||||||
let Embed = this.client.util.embed()
|
let Embed = this.client.util.embed()
|
||||||
.setColor('NAVY')
|
.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}`)
|
.setTitle(`${newMessage.author.username} modified their message in ${newMessage.channel.name}`)
|
||||||
.addField('Previously', oldMessage, true)
|
.addField('Previously', oldMessage, true)
|
||||||
.addField('Currently', newMessage, true)
|
.addField('Currently', newMessage, true)
|
||||||
.setFooter(`Author ID: ${newMessage.author.id}`)
|
.setFooter(`Author ID: ${newMessage.author.id}, Message ID: ${newMessage.id}`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
channel.send(Embed);
|
channel.send(Embed);
|
||||||
|
|
Loading…
Reference in a new issue