Do I have to pump and dump?

My question is for the breastfeeding mamas, I’m pumping exclusively, and I took a pain pill. I don’t know what kind it is… I forgot the name, but I’m sure I have to pump and use it for a bath and can’t give it to baby… my question is… do I pump once and not use or is it a few times? Thanks in Advance