White thick discharge

So tonight I've been cramping a little and have been feeling off my periods due on Saturday in currently 8dpo tonight it felt like I started bleeding al of a sudden but when I went to the bathroom sorry tmi but it was a thick white discharge a decent amount. Never has it like that before. What could that be caused by?