@tryforge/forgescript
Version:
ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.
21 lines • 1.34 kB
TypeScript
import { type ForgeClient } from "../core/ForgeClient";
import { BaseEventHandler } from "../structures";
export declare const NativeEventName = "native";
export declare class EventManager {
private readonly client;
static readonly Loaded: Partial<Record<string, Record<string, BaseEventHandler>>>;
private events;
constructor(client: ForgeClient);
static loadNative(): void;
load(name: string, ...events: (string | string[])[]): void;
static load(name: string, path: string): void;
static toJSON(name: string): {
name: string;
description: string;
listener: (this: ForgeClient, ...args: unknown[]) => void | Promise<void>;
version?: string | undefined;
intents?: ("Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildExpressions" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessages" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls")[] | undefined;
}[];
has(handler: string, type: any): boolean;
}
//# sourceMappingURL=EventManager.d.ts.map