diff --git a/docs/commands/GENERAL.md b/docs/commands/GENERAL.md index cd7d7de..0f65597 100644 --- a/docs/commands/GENERAL.md +++ b/docs/commands/GENERAL.md @@ -16,7 +16,6 @@ - `/balance`/`?balance` - Checks how many ARAs you have - `/topbalances`/`?topbalances` - Displays the richest server members - ## XP - `/rank `/`?rank ` - Shows your rank based on the amount of XP you have. If you provide diff --git a/src/commands/economy/topbalances.ts b/src/commands/economy/topbalances.ts index 6ea3efd..f2f8b0e 100644 --- a/src/commands/economy/topbalances.ts +++ b/src/commands/economy/topbalances.ts @@ -34,9 +34,7 @@ export class TopBalancesCommand extends Command { // Registers that this is a slash command public override registerApplicationCommands(registry: Command.Registry) { registry.registerChatInputCommand( - (builder) => builder - .setName(this.name) - .setDescription(this.description), + (builder) => builder.setName(this.name).setDescription(this.description), { behaviorWhenNotIdentical: RegisterBehavior.Overwrite, }, @@ -95,13 +93,19 @@ export class TopBalancesCommand extends Command { const embed = new EmbedBuilder() .setColor('#cc802c') .setTitle('Top Balances on the Server') - .setAuthor({ name: 'ARA', iconURL: 'https://github.com/veganhacktivists/arabot/blob/main/docs/images/logo.png?raw=true' }); + .setAuthor({ + name: 'ARA', + iconURL: + 'https://github.com/veganhacktivists/arabot/blob/main/docs/images/logo.png?raw=true', + }); const leaders = await getTopBalances(5); const fetchMemberPromises: Promise[] = []; for (const leader of leaders) { - fetchMemberPromises.push(guild.members.fetch(leader.userId).catch(() => null)); + fetchMemberPromises.push( + guild.members.fetch(leader.userId).catch(() => null), + ); } const members = await Promise.all(fetchMemberPromises); @@ -114,13 +118,18 @@ export class TopBalancesCommand extends Command { if (member) { embed.addFields( { - name: (i + 1) + '.', - value: '[' + member.displayName + ']()', + name: i + 1 + '.', + value: + '[' + + member.displayName + + ']()', inline: true, }, { name: 'Balance', - value: leader.balance + ' ARA\'s', + value: leader.balance + " ARA's", inline: true, }, {