When the group requires admin approval (membershipApprovalMode: true),
the method returns { id, pendingApproval: true } instead of throwing
UnexpectedJoinGroupViaInviteResponse (issues #2221 / #2746).
Parameters
inviteCode: string
Returns Promise<JoinGroupResult>
Example
constresult = awaitWPP.group.join('abcde....'); if (result.pendingApproval) { console.log('Request sent — waiting for admin approval'); }
Join in a group from an invite code.
When the group requires admin approval (
membershipApprovalMode: true), the method returns{ id, pendingApproval: true }instead of throwingUnexpectedJoinGroupViaInviteResponse(issues #2221 / #2746).