Browse Source

Add channel to message delete logs

master
Abheek Dhawan 4 years ago
parent
commit
1a698d5b59
  1. 1
      bot.js

1
bot.js

@ -668,6 +668,7 @@ client.on('messageDelete', message => {
.setAuthor(message.author ? message.author.tag : "Unknown", message.author ? message.author.avatarURL() : client.user.defaultAvatarURL) .setAuthor(message.author ? message.author.tag : "Unknown", message.author ? message.author.avatarURL() : client.user.defaultAvatarURL)
.addField('Author', message.author ? message.author.tag : "Message not cached") .addField('Author', message.author ? message.author.tag : "Message not cached")
.addField('Message', message.content ? message.content : "Message not cached") .addField('Message', message.content ? message.content : "Message not cached")
.addField('Channel', message.channel ? message.channel : "Message not cached")
.setThumbnail(message.author.avatarURL()) .setThumbnail(message.author.avatarURL())
.setFooter("ID: " + message.id) .setFooter("ID: " + message.id)
.setTimestamp() .setTimestamp()

Loading…
Cancel
Save