Wanting friend to know she handled something poorly

Hey there. I feel like every question I have ever asked here is about the same “friend”, but here goes: I was on a camping trip and my phone died overnight. This “friend” said something in a group text that included me at 11:30 at night, and by 9 AM the next morning she’d called me out in a very snide way for failing to reply. This has happened before, and normally I just ignore it. I’ve worked on just trying to be amused by her behavior, but I find myself (childishly) wanting to scold her instead of explaining why I didn’t answer. I guess my thought is “she needs to learn that she can’t say what she wants with impunity”, but then I feel like I’d be acting just as fragile and defensive as she is. I can’t seem to get my head around a response that will feel good.