Kesha talked about how seriously she had been taking insults from online trolls, and how deeply the harassment was affecting her. “I was making trolls, I was making bullies, I was making people I had never met before who were projecting their insecurities on me, on the internet — I was making them the truth, the higher power,” she said in a conversation with Refinery 29’s Amy Emmerich.

This coincided with Kesha’s longtime disordered eating, which she also talked about at Tuesday’s panel.

“I almost died,” Kesha said. “I came closer than I ever knew.” She went to rehab for the issue in 2014.

“By the time I entered rehab,” she said, “they were surprised I hadn’t had a stroke — because I hadn’t consumed enough.”

After years of staying silent about her eating disorder, Kesha said that she no longer carries the stigma that comes along with it. “I’m not ashamed anymore,” she told Emmerich. “It’s emotional because it’s a deep-rooted disease. It can really affect your self-worth.”

Since her lawsuit against Dr. Luke over multiple alleged instances of sexual assault and emotional abuse, Kesha has put much of her painful past behind her. She dropped the dollar sign from her name, going from Ke$ha to Kesha, and since going to rehab in 2014, she’s been an outspoken advocate for seeking help with mental health and eating disorders. Kesha has also refocused on her music ― last May, she performed at the Billboard Music Awards, and shesaid on Tuesday that she’s been working on her music nonstop and has 70 to 80 songs in the pipeline.

NEW YORK, NY - FEBRUARY 19: Kesha arrives for an appearance in her case against Sony Music Entertainment at New York State Supreme Court on February 19, 2016 in New York City. Sony has refused to voluntarily release the pop star from her contract which requires her to make three more albums with producer Dr. Luke, a man she claims sexually assaulted her. (Photo by James Devaney/GC Images)