feat(types): define CommandDefinition type for command handling

This commit is contained in:
2025-10-29 15:42:11 +01:00
parent 7f9468bc99
commit 5b3167bf14
2 changed files with 4 additions and 2 deletions

3
src/type.d.ts vendored
View File

@@ -1 +1,2 @@
type Host = { host: string, name: string, alive: boolean, type: 'ping' | 'website' };
export type Host = { host: string, name: string, alive: boolean, type: 'ping' | 'website' };
export type CommandDefinition = { data: SlashCommandBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]};