Credit: Andrew Southam/E! Entertainment

Joan Rivers will join Kim Kardashian, Patty Duke, Serena Williams and Brandy Norwood as a guest star on Lifetime’s Drop Dead Diva this season.

Rivers will play Jane’s subconscious in two episodes. She first appears in Jane’s (Brooke Elliott) dreams as a … shrink?

You’re just like Madonna with her 23-year-old boyfriends. You’re not fooling anyone,” she tells Jane.

Rivers’ episodes will air in July.

Drop Dead Diva returns to Lifetime on June 3.