mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
feat(command): refactor ping and status commands to use CommandDefinition type
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user