Use description instead of title

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-05-01 07:35:01 +02:00
parent 57602e33fa
commit 66314b5c79
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@ class messageDeleteListener extends Listener {
let Embed = this.client.util.embed()
.setColor('NAVY')
.setAuthor(`${message.author.username}#${message.author.discriminator}`)
.setTitle(`${message.author.username} deleted their message in ${message.channel.name}`)
.setDescription(message)
.setDescription(`**${message.author} deleted their message in ${message.channel}**`)
.addField('Message deleted', message)
.setFooter(`Author ID: ${message.author.id}`)
.setTimestamp();

View file

@ -16,7 +16,7 @@ class messageUpdateListener extends Listener {
let Embed = this.client.util.embed()
.setColor('NAVY')
.setAuthor(`${newMessage.author.username}#${newMessage.author.discriminator}`, newMessage.author.displayAvatarURL())
.setTitle(`${newMessage.author.username} modified their message in ${newMessage.channel.name}`)
.setDescription(`**${newMessage.author} modified their message in ${newMessage.channel}**`)
.addField('Previously', oldMessage, true)
.addField('Currently', newMessage, true)
.setFooter(`Author ID: ${newMessage.author.id}, Message ID: ${newMessage.id}`)