UNPKG

@dookdiks/discord-bot-builder

Version:
12 lines (11 loc) 601 B
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; }