mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
update badge display, sync commands with slash commands
This commit is contained in:
parent
9eeb7f2721
commit
de8b946eed
4 changed files with 26 additions and 34 deletions
|
@ -56,6 +56,12 @@ module.exports = {
|
|||
if (u.discriminator && u.discriminator !== "0") usernameDisplay += `#${u.discriminator}`
|
||||
|
||||
usernameDisplay = `**@${usernameDisplay}**${botTag} ${highlight(`(${u.id})`)}`
|
||||
|
||||
// Badge Container
|
||||
let b = renderBadges(u)
|
||||
if(b.length >= 1) usernameDisplay += `\n${b.join('')}\n`
|
||||
|
||||
if(u.globalName !== null) usernameDisplay += `\n${smallIconPill("user_card", "Display Name")} ${smallPill(u.globalName)}`
|
||||
if (m && m.nick !== null) usernameDisplay += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}`
|
||||
|
||||
let userCard = createEmbed("default", context, {
|
||||
|
@ -85,17 +91,7 @@ module.exports = {
|
|||
inline: true
|
||||
})
|
||||
}
|
||||
|
||||
// Badge Container
|
||||
let b = renderBadges(u)
|
||||
if (u.avatarUrl.endsWith('.gif') || u.banner) { b.push(BADGE_ICONS.nitro) }
|
||||
if (b.length >= 1) {
|
||||
userCard.fields.push({
|
||||
name: `${icon("nitro")} Badges`,
|
||||
value: b.join(''),
|
||||
inline: true
|
||||
})
|
||||
}
|
||||
|
||||
return editOrReply(context, userCard)
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue