@dookdiks/discord-bot-builder
Version:
Modular Discord bot builder using discord.js
12 lines (11 loc) • 601 B
TypeScript
import { SlashCommandBuilder, ChatInputCommandInteraction, type CacheType } from "discord.js";
import { BaseEventHandler } from "./BaseEventHandler";
export declare class CreateInteractionEvent extends BaseEventHandler {
private slashCommand;
private handler?;
command(builder: (builder: SlashCommandBuilder) => SlashCommandBuilder): this;
on(handler: (interaction: ChatInputCommandInteraction<CacheType>) => void): this;
getSlashCommand(): SlashCommandBuilder;
getHandler(): ((interaction: ChatInputCommandInteraction<CacheType>) => void) | undefined;
register(): void;
}