From 741fd8d3d5e6df886742603acdbf476c7c669873 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 10 Jul 2023 21:02:38 +0500 Subject: [PATCH] fixies --- events/Monitoring/messageUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/Monitoring/messageUpdate.js b/events/Monitoring/messageUpdate.js index adc4e1a1..de9fc350 100644 --- a/events/Monitoring/messageUpdate.js +++ b/events/Monitoring/messageUpdate.js @@ -23,7 +23,7 @@ class messageUpdate extends BaseEvent { const guildData = await client.findOrCreateGuild({ id: oldMessage.guildId }); - if (guildData.plugins.monitoring.messageUpdate) { + if (guildData.plugins?.monitoring?.messageUpdate) { const embed = new EmbedBuilder() .setAuthor({ name: newMessage.author.getUsername(),