This commit is contained in:
Jozef Steinhübl 2023-08-25 07:59:41 +02:00
parent fa4a844dcb
commit 3d090d850b

View file

@ -16,10 +16,10 @@ async function moderateNick(member: GuildMember) {
const name = member.displayName;
const normalizedName = name.normalize("NFKC").replace(/^[!$#@%^`&*()]+/, "");
if (name !== normalizedName) {
if (name === normalizedName) return;
silently(member.edit({
nick: normalizedName,
reason: "lame username"
}));
}
}