Add more functions

This commit is contained in:
Guilherme Werner 2024-01-03 10:59:48 -03:00
parent 3bc20c99b9
commit af4fc31ed3
2 changed files with 101 additions and 1 deletions

View file

@ -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