Has this happened to you?

Has anyone while pregnant have bleeding similar to a period and big blood clots and everything still be fine with the baby, not end up miscarrying? Just wondering because this just happened to me last night, but it weird because there wasn't really any painful cramps more like just discomfort, I'm sure I probably miscarried but what if I didn't? Has this happened to anyone before?