Set nick/pronouns to undefined if attempting to set to empty string. Fixes #1246

This commit is contained in:
Rory& 2025-09-29 01:35:39 +02:00
parent 0f3f94ee93
commit 4f20beeff7

View File

@ -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) {