UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

18 lines (17 loc) 1.14 kB
/*! * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { ApplicationCommandType } from "discord-api-types/v10"; import { AutocompleteInteraction } from "discord.js"; import { RexApplicationCommandBase } from "../applicationCommandBase.js"; import { RexContextMenuCommand } from "../contextmenu/contextMenuCommand.js"; import { RexSlashCommandInteraction } from "../interactions/slashCommands/slashCommand.js"; import { RexAutoCompleteExecuteFun, RexChatInputCommandInfo, rexExecuteFun } from "../types/types"; export declare abstract class RexSlashCommandBase extends RexApplicationCommandBase<ApplicationCommandType.ChatInput> { protected _autocomplete?: RexAutoCompleteExecuteFun; _execute?: rexExecuteFun<RexSlashCommandInteraction, RexChatInputCommandInfo>; constructor(name: string, description: string); abstract runAutoComplete(auto: AutocompleteInteraction, commands: Map<string, RexApplicationCommandBase | RexContextMenuCommand>): void | unknown; }