From 9692e64939c76dc98bb86647cd058666ac93bb53 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 22:14:05 -0500 Subject: [PATCH] Return if edited message contains an embed --- bot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.js b/bot.js index ed8a7bf..25bfdec 100644 --- a/bot.js +++ b/bot.js @@ -711,6 +711,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()