game / pragma.party / PartyService / leaveV1 /
leaveV1 #
suspend fun leaveV1(session: PlayerSession, request: PartyRpc.LeaveV1Request, sessionAction: SessionAction.Builder): PartyRpc.LeaveV1Response
Leaves the current party.
Remove player:
The player is removed from their party. PartyPlugin.onRemovePlayer is invoked after removal. If the last leader in a party leaves, leadership will be given to a random player remaining within the party. If the player is in matchmaking with the party, the party will be removed from matchmaking.