style: run format:apply

This commit is contained in:
2026-01-14 22:36:07 -03:00
parent c005bc0e54
commit 294e256feb
5 changed files with 54 additions and 45 deletions
+28 -23
View File
@@ -1,32 +1,37 @@
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import { Command } from "../../commands";
import { Bot } from "../../bot";
import {
ChatInputCommandInteraction,
EmbedBuilder,
SlashCommandBuilder
} from 'discord.js';
import { Command } from '../../commands';
import { Bot } from '../../bot';
const builder = new SlashCommandBuilder()
.setName('commands')
.setDescription('Shows a list of all the commands.');
.setName('commands')
.setDescription('Shows a list of all the commands.');
const cmd: Command = {
name: builder.name,
builder: builder,
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
const responseEmbed = new EmbedBuilder()
.setColor("Blurple")
.setTitle("Command List");
name: builder.name,
builder: builder,
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
const responseEmbed = new EmbedBuilder()
.setColor('Blurple')
.setTitle('Command List');
const bot = Bot.get;
bot.getCategories().forEach(({ info, commands }) => {
const fieldBody = commands
.filter(({ builder }) => builder)
.map(({ builder }) => `• **${builder?.name}** - ${builder?.description}`)
.join("\n");
const bot = Bot.get;
bot.getCategories().forEach(({ info, commands }) => {
const fieldBody = commands
.filter(({ builder }) => builder)
.map(
({ builder }) => `• **${builder?.name}** - ${builder?.description}`
)
.join('\n');
responseEmbed.addFields({ name: info.name, value: fieldBody });
});
responseEmbed.addFields({ name: info.name, value: fieldBody });
});
await interaction.reply({ embeds: [responseEmbed] });
}
await interaction.reply({ embeds: [responseEmbed] });
}
};
export default cmd;
export default cmd;