Skip to content

Commit 2145499

Browse files
Add server installs too
1 parent f7d16d1 commit 2145499

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/commands/info.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function getVersion (): string {
1616
export async function info (interaction: CommandInteraction) {
1717
const application = await interaction.client.application?.fetch()
1818
const approximateUserInstallCount = application?.approximateUserInstallCount ?? null
19+
const approximateGuildCount = application?.approximateGuildCount ?? null
1920

2021
const invite = new ButtonBuilder()
2122
.setLabel('Invite the bot to your server!')
@@ -36,9 +37,10 @@ export async function info (interaction: CommandInteraction) {
3637
.setURL('https://discord.com/api/oauth2/authorize?client_id=905979909049028649&permissions=414464724032&scope=bot')
3738
.setThumbnail('https://starmanthegamer.com/icon.png')
3839
.addFields(
39-
{ name: 'Version', value: `Currently running version: ${getVersion()}` },
40-
{ name: 'Installs', value: approximateUserInstallCount ? `${approximateUserInstallCount.toLocaleString()} users` : 'Unknown', inline: true },
41-
{ name: 'Contributed by:', value: 'baggy, DevPixels, Index, InsertSoda, and many more!', inline: true }
40+
{ name: 'Version', value: `v${getVersion()}`, inline: true },
41+
{ name: 'User Installs', value: approximateUserInstallCount ? `${approximateUserInstallCount.toLocaleString()} users` : 'Unknown', inline: true },
42+
{ name: 'Server Installs', value: approximateGuildCount ? `${approximateGuildCount.toLocaleString()} servers` : 'Unknown', inline: true },
43+
{ name: 'Contributed by:', value: 'baggy, DevPixels, Index, InsertSoda, and many more!', inline: false }
4244
)
4345
.setFooter({ text: 'Thank you for using Polytoria Community Bot!', iconURL: 'https://starmanthegamer.com/icon.png' })
4446

0 commit comments

Comments
 (0)