webhook-bot-js
Version:
A JavaScript library for creating Webhook-Based Discord Bots
14 lines (13 loc) • 600 B
TypeScript
import { MessageCommand, SlashCommand, UserCommand } from './commandTypes';
import { APIApplicationCommandInteraction, APIInteractionResponse } from 'discord-api-types/v10';
export declare const slashCommands: {
[name: string]: SlashCommand;
};
export declare const userCommands: {
[name: string]: UserCommand;
};
export declare const messageCommands: {
[name: string]: MessageCommand;
};
export declare const handleCommand: (commandInteraction: APIApplicationCommandInteraction) => Promise<APIInteractionResponse | undefined>;
export declare const getCommands: () => any[];