UNPKG

fast-discord-js

Version:

FastDiscordJS is an unofficial extension of the 'discord.js' library. Our extension aims to simplify the development of Discord bots, promoting cleaner code and easier maintenance.

12 lines (11 loc) 499 B
import { AutocompleteInteraction, Interaction, StringSelectMenuInteraction } from "discord.js"; import { Client } from "."; export declare const interactionHandlers: Map<any, any>; export interface IInteractionHandlerOptions { customId: string; run: (client: Client, interaction: Exclude<Interaction, AutocompleteInteraction> | StringSelectMenuInteraction, ...args: string[]) => void; useParams?: boolean; } export default class { constructor(options: IInteractionHandlerOptions); }