feat(command): refactor ping and status commands to use CommandDefinition type

This commit is contained in:
2025-10-29 15:47:33 +01:00
parent 5b3167bf14
commit 9cadfb2734
2 changed files with 10 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
import { ApplicationIntegrationType, ChatInputCommandInteraction, CommandInteraction, EmbedBuilder, InteractionContextType, SlashCommandBuilder } from "discord.js";
import ping from "ping";
import statusService from "../../services/status.service";
import CommandDefinition from "./ping.command";
export default {
const cmd : CommandDefinition = {
data: new SlashCommandBuilder()
.setName('status')
.setDescription('Give statut of servers.')
@@ -30,4 +31,6 @@ export default {
await interaction.editReply({embeds: [embed]});
}
}
}
export default cmd;