UNPKG

@ad1m/djb

Version:

A streamlined library for creating Discord bots with Discord.js, featuring a simple command and event handler structure.

14 lines (11 loc) 494 B
import { C as ClientConfig, D as DJBClient } from '../djb-v--fSsJ2.js'; import 'discord.js'; type HandlerFile<T> = { parent: string; name: string; data: T; }; declare const getClientConfig: () => Promise<ClientConfig | undefined>; declare const loadFiles: <T>(dirPath: string) => Promise<never[] | MapIterator<HandlerFile<T>>>; declare const initHandlers: (client: DJBClient) => Promise<never[] | undefined>; export { type HandlerFile, getClientConfig, initHandlers, loadFiles };