userinfo: more fixes
This commit is contained in:
parent
b651101637
commit
6bae1a2301
1 changed files with 3 additions and 5 deletions
|
@ -344,10 +344,7 @@ userinfo.callback = async function (msg, line) {
|
|||
user.bot ? Icons.boat.replace(":i:", ":Bot:") : ""
|
||||
}`,
|
||||
];
|
||||
let subline = `${member?.nick ? `(${user.global_name ?? user.username}) \u2022` : ""}${formatUsername(user).replace(
|
||||
"@",
|
||||
""
|
||||
)} \u2022 <@${id}>`;
|
||||
let subline = `${formatUsername(user).replace("@", "")} \u2022 <@${id}>`;
|
||||
if (badges.length > 0) {
|
||||
subline += "\u2007" + badges.join("");
|
||||
}
|
||||
|
@ -427,6 +424,7 @@ userinfo.callback = async function (msg, line) {
|
|||
name: user.primary_guild.tag,
|
||||
}
|
||||
: null,
|
||||
title: member?.nick ? user.global_name ?? user.username : null,
|
||||
thumbnail: {
|
||||
url: guildAvatar || avatar,
|
||||
},
|
||||
|
@ -466,7 +464,7 @@ userinfo.callback = async function (msg, line) {
|
|||
value: member.roles
|
||||
.sort((a, b) => guild.roles.get(b).position - guild.roles.get(a).position)
|
||||
.map((role) => `<@&${role}>`)
|
||||
.join("\u2002"),
|
||||
.join("\u2004"),
|
||||
inline: false,
|
||||
},
|
||||
images.length > 0 && {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue