prettier
diff --git a/src/reflex/scanners.ts b/src/reflex/scanners.ts
index cdfb56b..0ae285a 100644
--- a/src/reflex/scanners.ts
+++ b/src/reflex/scanners.ts
@@ -219,7 +219,7 @@
// Does the username contain filtered words
// Does the nickname contain filtered words
let nameCheck;
- if(member.nickname) {
+ if (member.nickname) {
nameCheck = TestString(member.nickname ?? "", loose, strict, guildData.filters.wordFilter.enabled);
} else {
nameCheck = TestString(member.user.username, loose, strict, guildData.filters.wordFilter.enabled);
@@ -239,13 +239,7 @@
// Does the nickname contain an invite
const nicknameInviteCheck =
guildData.filters.invite.enabled && /discord\.gg\/[a-zA-Z0-9]+/gi.test(member.nickname ?? "");
- if (
- nameCheck !== null ||
- avatarCheck ||
- inviteCheck ||
- nicknameInviteCheck ||
- avatarTextCheck !== null
- ) {
+ if (nameCheck !== null || avatarCheck || inviteCheck || nicknameInviteCheck || avatarTextCheck !== null) {
const infractions = [];
if (nameCheck !== null) {
infractions.push(`Name contains a ${nameCheck.type}ly filtered word (${nameCheck.word})`);
diff --git a/tsconfig.json b/tsconfig.json
index 2c396b0..1da4a03 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,9 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 18 + ESM + Strictest",
"compilerOptions": {
- "lib": [
- "es2022"
- ],
+ "lib": ["es2022"],
"strict": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,