Breastfeeding/pumping and sleeping through the night

C

My doctor previously told me if I don’t wake up every six hours to pump throughout the night I would deplete my supply and get my period back. Does anyone baby sleep through the night and I skip the overnight pump? If so how long in between pumps do you go and did you get your period? back