summary refs log tree commit diff
path: root/src/util/entities/Member.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/entities/Member.ts')
-rw-r--r--src/util/entities/Member.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index 34089af2..d0d57b26 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -15,7 +15,7 @@ import {
 	RelationId,
 } from "typeorm";
 import { Guild } from "./Guild";
-import { Config, emitEvent, BannedWords, FieldErrors } from "../util";
+import { Config, emitEvent, FieldErrors } from "../util";
 import {
 	GuildCreateEvent,
 	GuildDeleteEvent,
@@ -126,10 +126,6 @@ export class Member extends BaseClassWithoutId {
 		if (this.nick) {
 			this.nick = this.nick.split("\n").join("");
 			this.nick = this.nick.split("\t").join("");
-			if (BannedWords.find(this.nick))
-				throw FieldErrors({
-					nick: { message: "Bad nickname", code: "INVALID_NICKNAME" },
-				});
 		}
 	}