simplify-cord
Version:
SimplifyCord 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.
15 lines (14 loc) • 445 B
TypeScript
import { Client, ClientEvents } from "discord.js";
interface EventData<EventName extends keyof ClientEvents> {
name: string;
event: EventName;
once?: boolean;
run(...args: ClientEvents[EventName]): void;
}
export declare class Event<EventName extends keyof ClientEvents> {
private static items;
constructor(data: EventData<EventName>);
static register(client: Client): void;
static loadLogs(): void;
}
export {};