@zerospacegg/vynthra
Version:
Discord bot for ZeroSpace.gg data
24 lines • 930 B
TypeScript
import type { Client, SlashCommandBuilder, ChatInputCommandInteraction, SlashCommandSubcommandsOnlyBuilder, SlashCommandSubcommandBuilder } from "discord.js";
export interface BotCommand {
data: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder;
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
}
export interface BotSubcommand {
name: string;
description: string;
builder: (subcommand: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder;
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
}
export interface BotConfig {
token: string;
clientId: string;
guildId?: string;
rootCommandName?: string;
rootCommandDescription?: string;
subcommands?: BotSubcommand[];
disableBuiltinCommands?: boolean;
}
export interface BotClient extends Client {
commands: Map<string, BotCommand>;
}
//# sourceMappingURL=types.d.ts.map