Understand that your warranty is likely toasted, because the moisture sensor has been tripped.
That said, try putting your phone in a bag of rice and letting it sit for a few days.
It will need to be completely dry before you attempt to turn it on or charge it, or you risk damaging it so that it will require repair.
Beyond that, and soft/hard resets, you may need a technicians help to recover the phone.