@jadl/cmd
Version:
A command handler for JADL
16 lines (15 loc) • 2.45 kB
TypeScript
import { APIApplicationCommandOption, APIApplicationCommandStringOption, APIApplicationCommandIntegerOption, APIApplicationCommandBooleanOption, APIApplicationCommandUserOption, APIApplicationCommandChannelOption, APIApplicationCommandRoleOption, APIApplicationCommandMentionableOption, APIApplicationCommandNumberOption, APIApplicationCommandAttachmentOption } from 'discord-api-types/v9';
import { APIApplicationCommandArgumentOptions, CommandInteraction } from '../../types';
export declare const CommandOption: (data: APIApplicationCommandOption & Omit<APIApplicationCommandArgumentOptions, "type">, customFn?: ((inp: string | number | boolean, int: CommandInteraction) => any) | undefined) => ParameterDecorator;
export declare const Options: {
String: (name: string, description: string, options?: Omit<APIApplicationCommandStringOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Integer: (name: string, description: string, options?: Omit<APIApplicationCommandIntegerOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Boolean: (name: string, description: string, options?: Omit<APIApplicationCommandBooleanOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
User: (name: string, description: string, options?: Omit<APIApplicationCommandUserOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Member: (name: string, description: string, options?: Omit<APIApplicationCommandUserOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Channel: (name: string, description: string, options?: Omit<APIApplicationCommandChannelOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Role: (name: string, description: string, options?: Omit<APIApplicationCommandRoleOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Mentionable: (name: string, description: string, options?: Omit<APIApplicationCommandMentionableOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Number: (name: string, description: string, options?: Omit<APIApplicationCommandNumberOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
Attachment: (name: string, description: string, options?: Omit<APIApplicationCommandAttachmentOption, "description" | "type" | "name"> | undefined) => ParameterDecorator;
};