@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) • 495 B
text/typescript
import { C as ClientConfig, D as DJBClient } from '../djb-v--fSsJ2.mjs';
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 };