further adjust display

This commit is contained in:
bignutty 2024-08-28 21:01:23 +02:00
parent 5a650bbb3c
commit f910be7ab7

View file

@ -2,7 +2,7 @@ const { paginator } = require('#client');
const { createEmbed, page, formatPaginationEmbeds } = require("#utils/embed");
const { guildFeaturesField } = require("#utils/fields");
const { icon, highlight, timestamp, codeblock, iconPill } = require("#utils/markdown");
const { icon, highlight, timestamp, codeblock, iconPill, smallIconPill } = require("#utils/markdown");
const { editOrReply } = require("#utils/message");
// TODO: Turn this into a general purpose permissions constant
@ -37,11 +37,11 @@ module.exports = {
// Header Pills
let pills = []
pills.push(iconPill("user_multiple", context.guild.memberCount + " Members"))
if(g.premiumSubscriptionCount >= 1) pills.push(iconPill("boost", g.premiumSubscriptionCount + " Boosts"))
if(g.roles.length >= 2) pills.push(iconPill("user_shield", `${g.roles.length} Roles`))
if(emojis.length >= 1) pills.push(iconPill("emoji", emojis.length + " Emoji"))
if(channels.length >= 1) pills.push(iconPill("channel", g.channels.length + " Channels"))
pills.push(smallIconPill("user_multiple", context.guild.memberCount + " Members"))
if(g.premiumSubscriptionCount >= 1) pills.push(smallIconPill("boost", g.premiumSubscriptionCount + " Boosts"))
if(g.roles.length >= 2) pills.push(smallIconPill("user_shield", `${g.roles.length} Roles`))
if(emojis.length >= 1) pills.push(smallIconPill("emoji", emojis.length + " Emoji"))
if(channels.length >= 1) pills.push(smallIconPill("channel", g.channels.length + " Channels"))
if(g.owner) pills.push(`${icon("user_king")} <@${g.owner.id}>`)
let pillDisplay = ""