diff --git a/commands/message/core/stats.js b/commands/message/core/stats.js index 86a4152..761271a 100644 --- a/commands/message/core/stats.js +++ b/commands/message/core/stats.js @@ -75,18 +75,14 @@ module.exports = { `${iconPill("home", "Servers ")} ${highlight(` ${formatted.guilds} `)}` ] - if(applicationMetadata?.body?.approximate_user_install_count) display.push( - `${iconPill("user", "Installations")} ${highlight(` ${applicationMetadata?.body?.approximate_user_install_count} `)}` - ) + if(applicationMetadata.body?.approximate_user_install_count) + display.push(`${iconPill("user", "Installations")} ${highlight(` ${applicationMetadata.body.approximate_user_install_count} `)}`) - display = [ - ...display, - `${iconPill("robot", "Shard ")} ${highlight(` ${context.shardId + 1}/${context.manager.cluster.shardCount} `)}`, - `${iconPill("latency", "Memory Usage ")} ${highlight(` ${Math.round(formatted.usage / 1024 / 1024)}MB `)}`, - `${iconPill("clock", "Uptime ")} ${highlight(` ${format(process.uptime())} `)}`, - ``, - `${iconLinkPill('gitlab', OPEN_SOURCE_REPOSITORY_URL, 'Source Code')} ​ ​ ${iconLinkPill('link', context.application.oauth2UrlFormat({ scope: 'bot applications.commands', permissions: 412317248576 }), `Invite ${context.client.user.username}`).replace("ptb.discordapp.com","discord.com")}` - ] + display.push(`${iconPill("robot", "Shard ")} ${highlight(` ${context.shardId + 1}/${context.manager.cluster.shardCount} `)}`) + display.push(`${iconPill("latency", "Memory Usage ")} ${highlight(` ${Math.round(formatted.usage / 1024 / 1024)}MB `)}`) + display.push(`${iconPill("clock", "Uptime ")} ${highlight(` ${format(process.uptime())} `)}`) + display.push(``) + display.push(`${iconLinkPill('gitlab', OPEN_SOURCE_REPOSITORY_URL, 'Source Code')} ​ ​ ${iconLinkPill('link', context.application.oauth2UrlFormat({ scope: 'bot applications.commands', permissions: 412317248576 }), `Invite ${context.client.user.username}`).replace("ptb.discordapp.com","discord.com")}`) return editOrReply(context, createEmbed("default", context, { description: display.join('\n')