UNPKG

@averagehelper/corde

Version:

A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)

35 lines (34 loc) 983 B
import ConfigOptions from "../types"; /** * Default interface of json config * * @description `botTestToken` is not required. * only inform if is desired to start test bot with corde * */ export declare class Config implements ConfigOptions { cordeTestToken: string; botTestId: string; botTestToken?: string; channelId: string; guildId: string; timeOut?: number; botPrefix: string; testFiles: string[]; /** * Set values to config options that are not **filed** yet * It means that all options that are already with a value will not lose * this value * * @example * const config = new Config(); * config.timeOut = 1000; * * const newConfig: ConfigOptions = { ...timeOut: 3000 }; * config.setNoFiledConfigsOptions(newConfig); * console.log(config.timeOut) // print 1000; * * @param config new set of configs. */ setNoFiledConfigsOptions(config: ConfigOptions): void; }