The other day my kids were being bad and I didn't feel well and I yelled at them. I felt guilty afterwards. 
I would not, they have to learn at some point!
Yes, but there are other ways to discipline them then yelling. I hurt their feelings.
I get that, but it was bound to happn at some point
That is true, especially when I'm not feeling well.