From 225787c342c0473236f217f18104d851cbcba0be Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 22:57:34 -0500 Subject: [PATCH] Return if edited message is caused by embed --- bot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.js b/bot.js index 8515be5..1aa749e 100644 --- a/bot.js +++ b/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()