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:") : ""
|
user.bot ? Icons.boat.replace(":i:", ":Bot:") : ""
|
||||||
}`,
|
}`,
|
||||||
];
|
];
|
||||||
let subline = `${member?.nick ? `(${user.global_name ?? user.username}) \u2022` : ""}${formatUsername(user).replace(
|
let subline = `${formatUsername(user).replace("@", "")} \u2022 <@${id}>`;
|
||||||
"@",
|
|
||||||
""
|
|
||||||
)} \u2022 <@${id}>`;
|
|
||||||
if (badges.length > 0) {
|
if (badges.length > 0) {
|
||||||
subline += "\u2007" + badges.join("");
|
subline += "\u2007" + badges.join("");
|
||||||
}
|
}
|
||||||
|
@ -427,6 +424,7 @@ userinfo.callback = async function (msg, line) {
|
||||||
name: user.primary_guild.tag,
|
name: user.primary_guild.tag,
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
|
title: member?.nick ? user.global_name ?? user.username : null,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: guildAvatar || avatar,
|
url: guildAvatar || avatar,
|
||||||
},
|
},
|
||||||
|
@ -466,7 +464,7 @@ userinfo.callback = async function (msg, line) {
|
||||||
value: member.roles
|
value: member.roles
|
||||||
.sort((a, b) => guild.roles.get(b).position - guild.roles.get(a).position)
|
.sort((a, b) => guild.roles.get(b).position - guild.roles.get(a).position)
|
||||||
.map((role) => `<@&${role}>`)
|
.map((role) => `<@&${role}>`)
|
||||||
.join("\u2002"),
|
.join("\u2004"),
|
||||||
inline: false,
|
inline: false,
|
||||||
},
|
},
|
||||||
images.length > 0 && {
|
images.length > 0 && {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue