mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Merge master
This commit is contained in:
commit
1518d58e25
53 changed files with 289 additions and 320 deletions
|
@ -39,10 +39,10 @@ export async function getUserInfoEmbed(
|
|||
};
|
||||
|
||||
embed.author = {
|
||||
name: `${user.bot ? "Bot" : "User"}: ${renderUsername(user.username, user.discriminator)}`,
|
||||
name: `${user.bot ? "Bot" : "User"}: ${renderUsername(user)}`,
|
||||
};
|
||||
|
||||
const avatarURL = user.displayAvatarURL();
|
||||
const avatarURL = (member ?? user).displayAvatarURL();
|
||||
embed.author.icon_url = avatarURL;
|
||||
|
||||
if (compact) {
|
||||
|
@ -68,9 +68,8 @@ export async function getUserInfoEmbed(
|
|||
}
|
||||
|
||||
const userInfoLines = [`ID: \`${user.id}\``, `Username: **${user.username}**`];
|
||||
if (user.discriminator !== "0") {
|
||||
userInfoLines.push(`Discriminator: **${user.discriminator}**`);
|
||||
}
|
||||
if (user.discriminator !== "0") userInfoLines.push(`Discriminator: **${user.discriminator}**`);
|
||||
if (user.globalName) userInfoLines.push(`Display Name: **${user.globalName}**`);
|
||||
userInfoLines.push(`Created: **<t:${Math.round(user.createdTimestamp / 1000)}:R>**`);
|
||||
userInfoLines.push(`Mention: <@!${user.id}>`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue