Piece of my mucus plug or discharge?

I'm 36 weeks pregnant today, had diarrhea a few hours ago and last night I had some cramping off and on, on my right side of pelvis kinda felt like contractions but then they went away and haven't had any since.