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,6 +1,7 @@
import { ApplicationIntegrationType, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, CommandInteraction, ComponentType, ContainerBuilder, InteractionContextType, MessageFlags, SlashCommandBuilder } from "discord.js";
import { CommandDefinition } from "../../type";
export default {
const cmd : CommandDefinition = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Pong again!')
@@ -43,4 +44,6 @@ export default {
interaction.reply({content: 'Ho !', flags: [MessageFlags.Ephemeral]})
}}
]
}
}
export default CommandDefinition;