mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
Add TribufuServer.getServerInfo() method
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user