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(),