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