From b3cf99a6b0ba4e82272f9892574ea71c9b7108fb Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 00:46:58 -0500 Subject: [PATCH] Update message delete log embed if message wasn't cached --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f1f9c22..6220371 100644 --- a/index.js +++ b/index.js @@ -660,8 +660,8 @@ client.on('messageDelete', message => { messageAuthor = message.author.tag; messageAvatar = message.author.avatarURL(); } else { - messageAuthor = "Someone else deleted this message"; - messageAvatar = "https://www.myhowtoonline.com/wp-content/uploads/2020/10/discord-512x474.png"; + messageAuthor = "Message was not cached"; + messageAvatar = message.author.defaultAvatarURL; } if (!messageContent) { messageContent = "[NONE]";