Set nick/pronouns to undefined if attempting to set to empty string. Fixes #1246
This commit is contained in:
parent
0f3f94ee93
commit
4f20beeff7
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user