Any components of your phone can work now?
You should have take it apart and then put it in rice. As my experience to tear down HTC One M8, the impermeability of M8 is good, so if you don't take it apart, the rice can't absorb the water inside, and the water can't evaporate.
You missed the best time to save your phone, so now, take it apart, dry the water(don't use hair dryer directly, use rice, cloth and put it in air at first), and then assemble it to see if it can work.
I'm afraid you will face a heavy waterdamage problem.