commandbot
Version:
A framework that helps you create your own Discord bot easier.
36 lines (35 loc) • 847 B
TypeScript
/**
* Holds global state variables responsible for application life cycle
* @class
*/
export declare class StateManager {
/**
* Whether the bot is up and running
* @type {boolean}
* @private
*/
private _isRunning;
/**
* Whether this version of CommandBot is an unstable release
* @type {boolean}
* @private
* @readonly
*/
private readonly _unstable;
/**
* Whether the bot is running
* @type {boolean}
*/
get running(): boolean;
/**
* _unstable property getter
* @type {boolean}
*/
get dev(): boolean;
/**
* Setter for running state
* @remarks
* Once set to true, it cannnot be switched back to *false* until the application restart or crash
*/
set running(bool: boolean);
}