Skip to content

Commit

Permalink
feat: add Client.self
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Jan 7, 2025
1 parent ac26a46 commit a142406
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,16 @@ export class Client extends TypedEventEmitter<Events, Events> {

/**
* The currently logged-in user.
* @deprecated Use Client.self
*/
get user() {
return this.self;
}

/**
* The currently logged-in user.
*/
get self() {
if (!this.session) {
return undefined;
}
Expand Down

0 comments on commit a142406

Please sign in to comment.