mirror of
https://github.com/tribufu/tribufu-js
synced 2026-06-01 09:42:36 +00:00
Add TribufuServer.getServerInfo() method
This commit is contained in:
parent
afa618db24
commit
66fffd6ce3
1 changed files with 8 additions and 0 deletions
|
|
@ -55,6 +55,14 @@ export class TribufuServer extends TribufuClient {
|
||||||
return this.serverId;
|
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.
|
* Get a list of connected users.
|
||||||
* @returns
|
* @returns
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue