From 38f7782f509941e8d9b9b4310a1953098a2dc2c9 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Sat, 24 Dec 2022 11:59:57 +0100 Subject: [PATCH] Fixed bug automod --- src/commands/automod/add.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/automod/add.js b/src/commands/automod/add.js index a59884b..1395a38 100644 --- a/src/commands/automod/add.js +++ b/src/commands/automod/add.js @@ -14,6 +14,7 @@ module.exports = async (client, interaction, args) => { type: 'editreply' }, interaction); } + if(!data.Words) data.Words = []; data.Words.push(word); data.save(); blacklistedWords.get(interaction.guild.id).push(word);