I would get a now charger and cord, and seeing discoloration inside the usb port of the phone, I would get that checked out as well. I'm glad you didn't get hurt in this ordeal though.
My S9+ was being charged over night, and then an hour or 2 later i woke up smelling a burning rubber or something and i knowticed it was my phone charger. The output in the charging hole was really hot when i took it out and burned my finger alittle. My phone was really hot and i let it sit on the side for alittle untill the charger and the phone cooled down. And i see that the inside of my charging port was burned and the charger cord output was melted inside. I thought if i hadnt woke up to this, it couldve started a fire, and i would've died.