From cebec987cab0a18cf259c7b7b72bc42bae87fa59 Mon Sep 17 00:00:00 2001
From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com>
Date: Thu, 29 Dec 2022 21:10:56 +1100
Subject: [PATCH] Workaround for removing a word that doesnt exist

---
 src/commands/bannedWords.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/commands/bannedWords.ts b/src/commands/bannedWords.ts
index 72ef914..29b1353 100644
--- a/src/commands/bannedWords.ts
+++ b/src/commands/bannedWords.ts
@@ -15,8 +15,8 @@ export default {
                 interaction.reply(`Successfully added \`${word}\` to the list.`)
                 break;
             case 'remove':
-                if (client.bannedWords._content.includes(!word)) return interaction.reply({content: `\`${word}\` doesn't exist on the list.`, ephemeral: true});
-                client.bannedWords.removeData(word, 1, 0).forceSave();
+                if (client.bannedWords._content.includes(word) == false) return interaction.reply({content: `\`${word}\` doesn't exist on the list.`, ephemeral: true});
+                client.bannedWords.removeData(word, 0, 0).forceSave();
                 interaction.reply(`Successfully removed \`${word}\` from the list.`)
         }
     },