Browse Source

Use message.author.avatarURL() instead of message.avatarURL()

master
Abheek Dhawan 4 years ago
parent
commit
34b56ac372
  1. 2
      index.js

2
index.js

@ -25,7 +25,7 @@ client.on('messageDelete', message => {
if (message) { if (message) {
messageAuthor = message.author.tag; messageAuthor = message.author.tag;
messageContent = message.content; messageContent = message.content;
messageAvatar = message.avatarURL(); messageAvatar = message.author.avatarURL();
messageID = message.id; messageID = message.id;
} else { } else {
messageAuthor = "Someone else deleted this message"; messageAuthor = "Someone else deleted this message";

Loading…
Cancel
Save