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.
16 lines • 537 B
TypeScript
import { IExtendedCompilationResult } from "../core/Compiler";
import { Context } from "./Context";
import { Return, ReturnType } from "./Return";
export interface IForgeFunction {
name: string;
params?: string[];
code: string;
path?: string;
}
export declare class ForgeFunction {
readonly data: IForgeFunction;
readonly compiled: IExtendedCompilationResult;
constructor(data: IForgeFunction);
call(ctx: Context, args: string[]): Promise<Return<ReturnType>>;
}
//# sourceMappingURL=ForgeFunction.d.ts.map