import { SlashCommandBuilder } from "@discord-interactions/builders"; import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord-api-types/v10"; import { HandledInteraction } from "../handlers/HandledInteraction.js"; import { AutocompleteContext, Component, Modal, SlashCommandContext } from "../index.js"; import { ICommandBase, RegisteredCommandBase } from "./Base.js"; export interface ISlashCommand extends ICommandBase { autocompleteHandler?: (ctx: AutocompleteContext) => Promise; } export declare class SlashCommand extends HandledInteraction implements ISlashCommand { autocompleteHandler: (ctx: AutocompleteContext) => Promise; constructor(builder: SlashCommandBuilder, handler?: (ctx: SlashCommandContext) => Promise, components?: (Component | Modal)[], autocompleteHandler?: (ctx: AutocompleteContext) => Promise); setAutocompleteHandler(handler: (ctx: AutocompleteContext) => Promise): this; setComponents(components: (Component | Modal)[]): this; addComponents(...components: (Component | Modal)[]): this; } export declare class RegisteredSlashCommand extends RegisteredCommandBase { autocompleteHandler: (ctx: AutocompleteContext) => Promise; setAutocompleteHandler(handler: (ctx: AutocompleteContext) => Promise): this; }