UNPKG

vnftjs

Version:

Discord CommandHandler for TypeScript or JavaScript

19 lines (18 loc) 585 B
/// <reference types="node" /> import { Client } from "discord.js"; export declare type ScriptFunction = (bot: Client) => any; export declare class Script { funct: ScriptFunction; intervalTime: number; intervalId: NodeJS.Timeout; type: String; triggered: boolean; constructor(); /** * executes the function its holding, repeats in a interval if intervalTime is given * @param {Client} bot the bot that should be passed the function as a parameter */ trigger(bot: Client): void; stop(): void; interval: number; }