From 4f20beeff799ba16d68f42dc8bf0012313b7697e Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 29 Sep 2025 01:35:39 +0200 Subject: [PATCH] Set nick/pronouns to undefined if attempting to set to empty string. Fixes #1246 --- src/util/entities/Member.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index caa52eb3..0ed728fc 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -168,6 +168,8 @@ export class Member extends BaseClassWithoutId { this.nick = this.nick.split("\n").join(""); this.nick = this.nick.split("\t").join(""); } + if (this.nick === "") this.nick = undefined; + if (this.pronouns === "") this.pronouns = undefined; } static async IsInGuildOrFail(user_id: string, guild_id: string) {