Add TribufuServer.getServerInfo() method

This commit is contained in:
Guilherme Werner
2024-01-05 19:38:03 -03:00
parent afa618db24
commit 66fffd6ce3

View File

@ -55,6 +55,14 @@ export class TribufuServer extends TribufuClient {
return this.serverId;
}
/**
* Get information about the current server.
* @returns Server | null
*/
public async getServerInfo(): Promise<any | null> {
return this.getServerById(this.serverId);
}
/**
* Get a list of connected users.
* @returns