If you're in the US, we have the Americans with Disabilities Act that is supposed to protect us in certain ways. 

Now that my brain is starting to clear up I'm realizing that my employer was just kind of bullying me into working like normal even though I was visibly in distress. I had approached our DOO on the separate occasions with different reasonable solutions and was told things like, "it doesn't make sense to hire a contractor and still pay your salary", and, "we want you to be well but we also need to protect the business," and "we don't know what the answer is yet, so let's just keep having this conversation until we figure it out."

Every meeting was a traumatic experience because my stomach dropped with anxiety. I was made to feel like they were doing me a favor while simultaneously making me feel like the company couldn't operate without me. 

I even sent them an email explaining what bipolar and anxiety are and how they affect me. But they still kept saying this shit. Finally my psychiatrist write me a doctor's note so they would have to let me work from home but they just guilted me about it and try to get me to stay in the office. In hind sight I can see how manipulative and gaslight-y it was. 

So I'm just wondering if any of you have experienced anything like this and if you took any sort of legal action or something.