mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-11 04:57:19 +00:00
fix
This commit is contained in:
parent
b5c12770dc
commit
0b9cc09beb
2 changed files with 5 additions and 3 deletions
|
@ -1611,6 +1611,8 @@ export function renderUsername(username: string, discriminator: string): string
|
|||
}
|
||||
|
||||
export function renderUserUsername(user: GuildMember | User | UnknownUser): string {
|
||||
user instanceof GuildMember ? (user = user.user) : null;
|
||||
if(user instanceof GuildMember) {
|
||||
return renderUsername(user.user.username, user.user.discriminator);
|
||||
}
|
||||
return renderUsername(user.username, user.discriminator);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue