mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
some transforms
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
f1791fac44
commit
4c788bc321
7 changed files with 16 additions and 13 deletions
|
@ -43,7 +43,7 @@ export async function getUserInfoEmbed(
|
|||
const timeAndDate = pluginData.getPlugin(TimeAndDatePlugin);
|
||||
|
||||
embed.author = {
|
||||
name: `${user.bot ? "Bot" : "User"}: ${renderUsername(user.username, user.discriminator)}`,
|
||||
name: `${user.bot ? "Bot" : "User"}: ${renderUsername(user)}`,
|
||||
};
|
||||
|
||||
const avatarURL = user.displayAvatarURL();
|
||||
|
@ -72,9 +72,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