Skip to content

Commit

Permalink
feat: Added getGroupSizeLimit function (close #1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jun 2, 2023
1 parent 8e8738b commit 8329e70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/layers/retriever.layer.ts
Expand Up @@ -506,4 +506,15 @@ export class RetrieverLayer extends SenderLayer {
msgId
);
}

/**
* Get the max number of participants for a group
*
* @category Group
*/
public async getGroupSizeLimit(): Promise<number> {
return await evaluateAndReturn(this.page, () =>
WPP.group.getGroupSizeLimit()
);
}
}

0 comments on commit 8329e70

Please sign in to comment.