diff --git a/index.js b/index.js index bd3ed46..4ca6682 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ client.on('messageDelete', message => { if (message) { messageAuthor = message.author.tag; messageContent = message.content; - messageAvatar = message.avatarURL(); + messageAvatar = message.author.avatarURL(); messageID = message.id; } else { messageAuthor = "Someone else deleted this message";