This commit is contained in:
2026-01-29 12:26:13 +01:00
parent ba0f116bc2
commit 6dbcadcaee
79 changed files with 2795 additions and 657 deletions

28
src/commands/types.ts Normal file
View File

@@ -0,0 +1,28 @@
/**
* Command types and interfaces
*/
import type {
CacheType,
ChatInputCommandInteraction,
SlashCommandBuilder,
SlashCommandOptionsOnlyBuilder,
} from "discord.js";
export interface Command {
/** The command definition for Discord */
data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder;
/** Execute the command */
execute: (interaction: ChatInputCommandInteraction<CacheType>) => Promise<void>;
/** Optional: Command category for organization */
category?: CommandCategory;
}
export type CommandCategory =
| "fun"
| "utility"
| "moderation"
| "ai"
| "debug";