mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -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
|
@ -47,6 +47,10 @@ module.exports = {
|
|||
|
||||
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)}`
|
||||
|
||||
|
@ -77,18 +81,6 @@ 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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
if(!m?.banner && m) u.member = await context.guild.fetchMember(u.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue