mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-11 04:57:19 +00:00
feat: per-server avatars & username fixes
This commit is contained in:
parent
5a4e50b19d
commit
b5c12770dc
11 changed files with 37 additions and 23 deletions
|
@ -1610,6 +1610,7 @@ export function renderUsername(username: string, discriminator: string): string
|
|||
return `${username}#${discriminator}`;
|
||||
}
|
||||
|
||||
export function renderUserUsername(user: User | UnknownUser): string {
|
||||
export function renderUserUsername(user: GuildMember | User | UnknownUser): string {
|
||||
user instanceof GuildMember ? (user = user.user) : null;
|
||||
return renderUsername(user.username, user.discriminator);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue