From 34b56ac37227dcc6ebd9973edc00db9d4a3194aa Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 15:17:17 -0500 Subject: [PATCH] Use message.author.avatarURL() instead of message.avatarURL() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";