UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

38 lines (37 loc) 1.14 kB
import type { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import type { Data } from "../../classes/structures/Data"; export default class AdvancedReplace extends APIFunction { name: string; description: string; parameters: ({ name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; allowedValues?: undefined; } | { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: string; allowedValues?: undefined; } | { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: string; allowedValues: string[]; })[]; usage: string; returns: ParamType; aliases: string[]; compile: boolean; run(this: CompiledFunction, d: Data, [text, match, newValue, amount, direction]: string[]): Promise<string>; }