feat: new username support
This commit is contained in:
parent
514e93aa23
commit
0e70412bc4
8 changed files with 42 additions and 20 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue