diff --git a/index.js b/index.js index 6220371..a8079df 100644 --- a/index.js +++ b/index.js @@ -661,7 +661,7 @@ client.on('messageDelete', message => { messageAvatar = message.author.avatarURL(); } else { messageAuthor = "Message was not cached"; - messageAvatar = message.author.defaultAvatarURL; + messageAvatar = client.user.defaultAvatarURL; } if (!messageContent) { messageContent = "[NONE]";