mirror of
https://github.com/tribufu/tribufu-js
synced 2026-06-01 09:42:36 +00:00
Add more functions
This commit is contained in:
parent
3bc20c99b9
commit
af4fc31ed3
2 changed files with 101 additions and 1 deletions
|
|
@ -333,6 +333,14 @@ export class TribufuClient extends TribufuApi {
|
|||
return responseBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about the current client.
|
||||
* @returns Client | null
|
||||
*/
|
||||
public async getClientInfo(): Promise<User | null> {
|
||||
return this.getClientById(this.clientId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about the current user.
|
||||
* @returns User | null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue