diff --git a/src/structure/components/observers/Automoderation.js b/src/structure/components/observers/Automoderation.js index b881db8..d20a9d1 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -398,7 +398,8 @@ module.exports = class AutoModeration extends Observer { this.logger.error('Error in message flag:\n' + err.stack); }); - await this.client.storageManager.mongodb.wordwatcher.insertOne({ + // Only insert if actions are defined + if(actionRow) await this.client.storageManager.mongodb.wordwatcher.insertOne({ message: sent.id, target: msg.id, channel: msg.channel.id,