Merge branch 'main' into development
diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts
index cc69bf0..6c26d2a 100644
--- a/src/events/messageCreate.ts
+++ b/src/events/messageCreate.ts
@@ -268,7 +268,7 @@
         const check = TestString(
             content,
             config.filters.wordFilter.words.loose,
-            config.filters.wordFilter.words.strict
+            config.filters.wordFilter.words.strict,
         );
         if (check !== null) {
             messageException(message.guild.id, message.channel.id, message.id);
diff --git a/src/reflex/scanners.ts b/src/reflex/scanners.ts
index 0ae285a..963aebb 100644
--- a/src/reflex/scanners.ts
+++ b/src/reflex/scanners.ts
@@ -179,7 +179,7 @@
     string: string,
     soft: string[],
     strict: string[],
-    enabled?: boolean
+    enabled: boolean = true
 ): { word: string; type: string } | null {
     if (!enabled) return null;
     for (const word of strict) {
@@ -220,7 +220,7 @@
     // Does the nickname contain filtered words
     let nameCheck;
     if (member.nickname) {
-        nameCheck = TestString(member.nickname ?? "", loose, strict, guildData.filters.wordFilter.enabled);
+        nameCheck = TestString(member.nickname, loose, strict, guildData.filters.wordFilter.enabled);
     } else {
         nameCheck = TestString(member.user.username, loose, strict, guildData.filters.wordFilter.enabled);
     }