feat: new username support

This commit is contained in:
Dragory 2023-06-24 10:41:02 +00:00
parent 514e93aa23
commit 0e70412bc4
8 changed files with 42 additions and 20 deletions

View file

@ -1602,3 +1602,10 @@ export function isTruthy<T>(value: T): value is Exclude<T, false | null | undefi
}
export const DBDateFormat = "YYYY-MM-DD HH:mm:ss";
export function renderUsername(username: string, discriminator: string) {
if (discriminator === "0") {
return username;
}
return `${username}#${discriminator}`;
}