The novelist, best known for her Shopaholic series of novels, revealed her diagnosis on social media.