If it is criminal detention, the family members should promptly entrust a defense lawyer, who will go to the detention center to meet with the client to understand the case and then determine how to handle it.
If the circumstances are minor, you can apply for bail pending trial.