mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 00:45:41 +00:00
Set nick/pronouns to undefined if attempting to set to empty string. Fixes #1246
This commit is contained in:
@@ -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