joel bot
This commit is contained in:
28
src/commands/types.ts
Normal file
28
src/commands/types.ts
Normal 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";
|
||||
Reference in New Issue
Block a user