Browse Source

Fix undefined message.author

master
Abheek Dhawan 4 years ago
parent
commit
8e3d000711
  1. 2
      index.js

2
index.js

@ -207,6 +207,7 @@ client.on('messageDelete', message => {
});
client.on('messageUpdate', (originalMessage, editedMessage) => {
if (editedMessage.author) {
if (editedMessage.author.bot) {
return;
}
@ -219,6 +220,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
.setTimestamp()
.setColor('006699');
client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error);
}
});
client.on('channelCreate', channel => {

Loading…
Cancel
Save