import { CommandContext, CommandConfig, CommandPermissions } from '../../types'; import { ApplicationCommandOptionChoice, AutocompleteInteraction } from 'discord.js'; import Client from '../Client'; export default class BaseCommand { config: CommandConfig; permissions: CommandPermissions; data: { [key: string]: any; }; constructor(data: { config: CommandConfig; permissions: CommandPermissions; data: { [key: string]: any; }; }); /** Use if you have an Autocomplete option. Return the data and don't use `AutocompleteInteraction#respond` */ autocomplete(client: Client, interaction: AutocompleteInteraction): Promise>; /** Command body which gets executed. */ run(ctx: CommandContext): Promise; }