|
@ -18,14 +18,18 @@ client.on("guildMemberAdd", member => { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
client.on('messageDelete', message => { |
|
|
client.on('messageDelete', message => { |
|
|
const messageContent = message.content; |
|
|
const messageContent; |
|
|
const messageAvatar = message.author.avatarURL(); |
|
|
const messageAvatar; |
|
|
const messageID = message.id; |
|
|
const messageID; |
|
|
let messageAuthor; |
|
|
let messageAuthor; |
|
|
if (message) { |
|
|
if (message) { |
|
|
messageAuthor = message.author.tag; |
|
|
messageAuthor = message.author.tag; |
|
|
|
|
|
messageContent = message.content; |
|
|
|
|
|
messageAvatar = message.avatarURL(); |
|
|
|
|
|
messageID = message.id; |
|
|
} else { |
|
|
} else { |
|
|
messageAuthor = "Someone else deleted this message"; |
|
|
messageAuthor = "Someone else deleted this message"; |
|
|
|
|
|
messageAvatar = "https://64.media.tumblr.com/db1db81cadcf6211524ce9ef1b89bae7/tumblr_inline_olcfuexwZy1se2zq9_500.png"; |
|
|
messageContent = "Unknown"; |
|
|
messageContent = "Unknown"; |
|
|
messageID = "Unknown"; |
|
|
messageID = "Unknown"; |
|
|
} |
|
|
} |
|
|