webhook-bot-js
Version:
A JavaScript library for creating Webhook-Based Discord Bots
16 lines (15 loc) • 758 B
TypeScript
import { APIApplicationCommandOption, APIChatInputApplicationCommandInteraction, APIInteractionResponse, APIMessageApplicationCommandInteraction, APIUserApplicationCommandInteraction } from 'discord-api-types/v10';
export declare type SlashCommand = {
name: string;
description: string;
options: APIApplicationCommandOption[];
execute: (interaction: APIChatInputApplicationCommandInteraction) => APIInteractionResponse;
};
export declare type UserCommand = {
name: string;
execute: (interaction: APIUserApplicationCommandInteraction) => APIInteractionResponse;
};
export declare type MessageCommand = {
name: string;
execute: (interaction: APIMessageApplicationCommandInteraction) => APIInteractionResponse;
};