From 444e81569018a71a1e50deef37419c4a2b10f3ef Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 17 Dec 2022 18:45:42 +1100 Subject: Remove bad banned words implementation --- src/util/entities/User.ts | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/util/entities/User.ts') 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() { -- cgit 1.4.1