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,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;
|
||||
Reference in New Issue
Block a user