import { XOR } from "@elara-services/utils"; import { APIApplicationCommandOptionChoice, ChatInputCommandInteraction, Collection, Interaction, InteractionEditReplyOptions, Message, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandIntegerOption, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandUserOption } from "discord.js"; import { Defer, MessageContextMenuCommand, Pre, PrefixCommand, SlashCommand, SubCommand, UserContextMenuCommand } from "./interfaces"; export * from "./components"; export * from "./context"; export * from "./deploy"; export * from "./interfaces"; export * from "./pager"; export * from "./process"; export * from "./utils"; export declare function handleMessageCommand(message: M, cmds: Collection, prefix: string, pre?: (message: M, cmd: C) => Pre, options?: Partial<{ /** * Makes the bot respond with an error message if there is one (by default this is disabled!) */ replyWith: boolean; /** * Allows prefix commands to be used by other bots (by default this is disabled!) * */ allowBots: boolean; }>): Promise; export declare function handleInteractionCommand(i: I, cmds: Collection, pre?: (i: I, cmd: C) => Pre, alwaysDefer?: Defer): Promise; export declare function handleAutocompleteCommand(i: Interaction, cmds: Collection): Promise; export declare function handleCommands(i: I, cmd: C | undefined, pre?: (i: I, cmd: C) => Pre, alwaysDefer?: Defer): Promise; export declare function handleSubCommands(interaction: T, files: F, pre?: (i: Interaction, cmd: SubCommand) => Pre, alwaysDefer?: Defer): Promise | undefined; export declare function buildSubCommand(builder: SlashCommandBuilder | ((builder: SlashCommandBuilder) => SlashCommandBuilder), commands: object): SlashCommandBuilder; export declare function buildCommand | XOR>(options: O): O; export declare function buildPrefixCommand(options: PrefixCommand): PrefixCommand; export declare function getUser(o: SlashCommandUserOption, options?: { name?: string; description?: string; required?: boolean; }): SlashCommandUserOption; export declare function getReason(o: SlashCommandStringOption, required?: boolean, autocomplete?: boolean): SlashCommandStringOption; export declare function getRole(o: SlashCommandRoleOption, options?: { name?: string; description?: string; required?: boolean; }): SlashCommandRoleOption; export declare function getStr(o: SlashCommandStringOption, options: { name: string; description: string; required?: boolean; autocomplete?: boolean; min?: number; max?: number; choices?: APIApplicationCommandOptionChoice[]; }): SlashCommandStringOption; export declare function getBool(o: SlashCommandBooleanOption, options: { name: string; description: string; required?: boolean; }): SlashCommandBooleanOption; export declare function getInt(o: SlashCommandIntegerOption, options: { name: string; description?: string; required?: boolean; autocomplete?: boolean; min?: number; max?: number; choices?: SlashCommandIntegerOption["choices"]; }): SlashCommandIntegerOption; export declare function sendFile(name: string, data: object | object[]): InteractionEditReplyOptions; export declare function handleInteractions(i: Interaction, commands: object, pre?: (i: Interaction, cmd: any) => Pre, alwaysDefer?: Defer): Promise; export * from "./messages";