Browse Source

Return if edited message is caused by embed

master
Abheek Dhawan 4 years ago
parent
commit
225787c342
  1. 3
      bot.js

3
bot.js

@ -710,6 +710,9 @@ client.on('messageDeleteBulk', messages => {
});
client.on('messageUpdate', (originalMessage, editedMessage) => {
if (editedMessage.embeds.length > 0) {
return;
}
editedMessage.channel.messages.fetch(editedMessage.id)
.then(editedMessage => {
const editEmbed = new Discord.MessageEmbed()

Loading…
Cancel
Save