Skip to content

Commit

Permalink
feat: Added client.getProfileStatus function (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Oct 24, 2024
1 parent 2641000 commit 4ce63d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/layers/profile.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export class ProfileLayer extends StatusLayer {
);
}

/**
* Gets current user profile status
* @category Profile
*/
public getProfileStatus() {
return evaluateAndReturn(this.page, () => WPP.profile.getMyStatus());
}

/**
* Sets the user's current profile photo
* @category Profile
Expand Down

0 comments on commit 4ce63d8

Please sign in to comment.