easy-api.ts
Version:
A powerful library to create your own API with ease.
24 lines (23 loc) • 729 B
TypeScript
import { CompiledFunction } from "../../classes/internal/CompiledFunction";
import { APIFunction, ParamType } from "../../classes/structures/APIFunction";
import { Data } from "../../classes/structures/Data";
import Reply from "./reply";
export default class SetType extends APIFunction {
name: string;
description: string;
parameters: {
name: string;
description: string;
type: ParamType;
required: boolean;
rest: boolean;
defaultValue: null;
allowedValues: string[];
}[];
usage: string;
returns: ParamType;
compile: boolean;
aliases: never[];
parent: Reply;
run(this: CompiledFunction, d: Data, [type]: string[]): Promise<void>;
}