Potty regression

My 2 year old has been full day trained for about 4 months now. He told us one night that he didn’t want to wear a diaper to bed, so we stopped putting him in diapers at night time about a week ago. He did good the first few days, then we had accidents at night AND during the day. I’m fine if he’s not ready for overnights, I didn’t plan on doing that anyway, but since he was adamant about not wearing a diaper, we didn’t want to put him in one. I’m just confused on why he’s having accidents during the day now too 😕 Any ideas on why this is happening or what I can do to help him?