Browse Source

Update message delete log embed if message wasn't cached

master
Abheek Dhawan 4 years ago
parent
commit
b3cf99a6b0
  1. 4
      index.js

4
index.js

@ -660,8 +660,8 @@ client.on('messageDelete', message => {
messageAuthor = message.author.tag; messageAuthor = message.author.tag;
messageAvatar = message.author.avatarURL(); messageAvatar = message.author.avatarURL();
} else { } else {
messageAuthor = "Someone else deleted this message"; messageAuthor = "Message was not cached";
messageAvatar = "https://www.myhowtoonline.com/wp-content/uploads/2020/10/discord-512x474.png"; messageAvatar = message.author.defaultAvatarURL;
} }
if (!messageContent) { if (!messageContent) {
messageContent = "[NONE]"; messageContent = "[NONE]";

Loading…
Cancel
Save