Moms that had thrush while breastfeeding

How did you know? I have been getting the odd shooting pain in my breast. Neither nipple are cracked but one kind of looks raw on top. Going to make a doctors appointment but in the meantime do I counting breastfeeding him?