@ariusii/intersect.ts
Version:
The Intersect Engine API Client Library based on TS.
33 lines • 1.11 kB
TypeScript
/**
* This is the Server Class, it contains all the methods to handle the Server.
* Those actions do not require any Query Role.
* @class Server
* @link https://docs.freemmorpgmaker.com/en-US/api/v1/endpoints/info.html
* @author AriusII
*/
export declare class Server {
private _url;
private _token;
constructor(_url: string, _token: string);
/**
* Checks token and returns whether or not you're authorized to access protected api endpoints.
* @returns - The response from the server.
*/
getAuthorized(): Promise<any>;
/**
* Retrieves the game name and port number from your server.
* @returns - The response from the server.
*/
getInfo(): Promise<any>;
/**
* Retrieves active server stats such as online player count, uptime, cps, etc.
* @returns - The response from the server.
*/
getStats(): Promise<any>;
/**
* Retrieves the active server configuration.
* @returns - The response from the server.
*/
getConfig(): Promise<any>;
}
//# sourceMappingURL=server.d.ts.map