Miscarriage or just a clot??

Hey y’all. I am completely terrified. I was wondering if this happened to be a miscarriage? It happened right around the time of my period and I was bleeding prior to this but then I got the awful awful cramp where I had to run to the bathroom because I felt it pouring out. I had a tampon in and it was still pouring. It wasn’t a heavy flow because I wore a tampon all night and didn’t bleed through. Has anyone gone through this?