Skip to content

Commit

Permalink
feat: added client.getProfileName function (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Aug 5, 2024
1 parent 55137ad commit 8f7ec63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/layers/profile.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ export class ProfileLayer extends StatusLayer {
{ name }
);
}
/**
* Gets the current user profile name
* @category Profile
*/
public getProfileName() {
return evaluateAndReturn(this.page, () => WPP.profile.getMyProfileName());
}
/**
* Remove your profile picture
* @category Profile
Expand Down

0 comments on commit 8f7ec63

Please sign in to comment.