feat: dashboard
This commit is contained in:
@@ -5,13 +5,16 @@
|
||||
import type {
|
||||
CacheType,
|
||||
ChatInputCommandInteraction,
|
||||
SlashCommandBuilder,
|
||||
SlashCommandOptionsOnlyBuilder,
|
||||
} from "discord.js";
|
||||
|
||||
export interface CommandData {
|
||||
name: string;
|
||||
toJSON: () => unknown;
|
||||
}
|
||||
|
||||
export interface Command {
|
||||
/** The command definition for Discord */
|
||||
data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder;
|
||||
data: CommandData;
|
||||
|
||||
/** Execute the command */
|
||||
execute: (interaction: ChatInputCommandInteraction<CacheType>) => Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user