UNPKG

@dexare/slash-create

Version:

A Dexare module that uses slash-create to make slash commands

13 lines (12 loc) 693 B
import { CommandOptions, DexareClient, DexareCommand } from 'dexare'; import { CommandContext, PartialApplicationCommand, SlashCommandOptions } from 'slash-create'; import { DexareSlashCommandOptions } from './types'; export default class SlashableDexareCommand extends DexareCommand { slashOptions: Required<SlashCommandOptions>; constructor(client: DexareClient<any>, opts: CommandOptions, slashOpts: DexareSlashCommandOptions); get slashKeyName(): string; slashRun(ctx: CommandContext): Promise<any>; slashOnError(err: Error, ctx: CommandContext): any; slashFinalize(response: any, ctx: CommandContext): any; get slashCommandJSON(): PartialApplicationCommand; }