summary refs log tree commit diff
path: root/src/util/entities/User.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 18:45:42 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 18:45:42 +1100
commit444e81569018a71a1e50deef37419c4a2b10f3ef (patch)
treefefec776056da164b39f7165494b81e5667f41f8 /src/util/entities/User.ts
parentRemove /api/-/monitorz (diff)
downloadserver-444e81569018a71a1e50deef37419c4a2b10f3ef.tar.xz
Remove bad banned words implementation
Diffstat (limited to 'src/util/entities/User.ts')
-rw-r--r--src/util/entities/User.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index 585bd725..7790856a 100644
--- a/src/util/entities/User.ts
+++ b/src/util/entities/User.ts
@@ -16,7 +16,6 @@ import {
 	FieldErrors,
 	Snowflake,
 	trimSpecial,
-	BannedWords,
 	adjustEmail,
 } from "..";
 import { Member, Session } from ".";
@@ -242,12 +241,6 @@ export class User extends BaseClass {
 				});
 			this.discriminator = discrim.toString().padStart(4, "0");
 		}
-
-		if (/*!update ||*/ this.username)
-			if (BannedWords.find(this.username))
-				throw FieldErrors({
-					username: { message: "Bad username", code: "INVALID_USERNAME" },
-				});
 	}
 
 	toPublicUser() {