Browse Source

Use editedMessage instead of message for messageUpdate()

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

2
index.js

@ -554,7 +554,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
.setFooter("ID: " + editedMessage.id) .setFooter("ID: " + editedMessage.id)
.setTimestamp() .setTimestamp()
.setColor('c9ff00'); .setColor('c9ff00');
collection.findOne({ guild_id: message.guild.id }, (error, result) => { collection.findOne({ guild_id: editedMessage.guild.id }, (error, result) => {
if (error) { if (error) {
console.error; console.error;
} }

Loading…
Cancel
Save