is okay to not feed your baby when they wake up at night?

i really don’t want to be judged for this as i’m a first time mom, i know nothing about sleep training, i was NOT trying to put my sleep above my child’s hunger. i feel guilty about this to my core, i don’t want to be mom-shamed. i already tried to post this in a facebook group but the admins were worried some moms would see it as abuse so it didn’t get posted. i really need some feedback on this please.. i’m a good mother i love my child endlessly, this was in no way shape or form intentional neglect.

so i read this article about how to help your baby sleep through the night, and it said that you need to teach them that night time isn't play time or eating time, it's sleeping time. It was basically saying that if the baby wakes up, it's okay to just change their diaper and rock them back to sleep instead of feeding them like normal. Another article said that babies will wake up at night because they are used to eating, not because they need to, and they don't need the "nighttime calories" in order to grow properly. So my daughter just turned 3 months and usually wakes up once a night to eat, and last night i tried this method out. She woke up at 4 and i changed her diaper and put her paci in, she didn't sleep for long so i took her out of her bassinet and cuddled her, and she went back to sleep. this was a cycle until 7am when i finally looked at the clock again and realized it was morning. this is when she ate. I hadn't realized it was early morning or I would've fed her hours ago. I honestly feel like such a piece of trash mom. My baby was crying out of hunger and i was ignoring her. It actually makes me feel sick. I will not be trying this method again. Has anybody else tried this? Is there anyone in here who doesn't feed their baby when they wake up at night? like does anybody actually soothe their baby to sleep in the middle of the night instead of feeding? I think i would feel a lot better if i wasn't the only one who did this..