UNPKG

@ad1m/djb

Version:

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

18 lines (15 loc) 444 B
import { ClientEvents } from 'discord.js'; import { D as DJBClient } from '../djb-v--fSsJ2.js'; type EventConfig = { name: keyof ClientEvents; once?: boolean; }; /** * Event execute function */ type EventExecute<Event extends keyof ClientEvents> = (client: DJBClient, ...args: ClientEvents[Event]) => void; type Event = { config: EventConfig; execute: EventExecute<any>; }; export type { Event, EventConfig, EventExecute };