I was out with a depressed friend of mine and I made a joke about how she likes making fun of my dumbassery and she said “Well that’s something you have to tolerate if we’re friends. Better think twice about wether you want this. You can still leave.”

And I was a bit tipsy so my head was empty but I was still like wtf. I ended up laughing and saying “What? Where should I go?”

And she just said “You could leave and it’d be a sign that you don’t want to be friends anymore.”

I didn’t say anything to that and we just kept talking.
But now, the day after, I’m really bothered by this.

Is this how she always feels deep down? Is this something Depression makes you think? I really want to talk to her about it and assure her that I like having her in my life. Would it be okay to ask why tf she’d think I want to leave?

Edit: Later she said I had a good time and I said me too and she asked “was that sarcastic?”
Of course I said no, I like you and I had a good time but still. What is going on and how can I make it a little better, if at all?