2016 MacBook Pro 15" not charging
I've read on here that people will plug in their computer and it will say "battery not charging", and an smc reset normally fixes things. But this started when my MacBook was on 15% battery. I plugged it in and it didn't recognize the charger. No chime, no battery not charging text, nothing. It inevitably died then shortly after I was able to reset the smc and it started charging again. Fully charged I used it a few days and it died while I was away. Normal battery time. I went to charge it and again it didn't even acknowledge I plugged it in. Smc reset didn't do anything this time and after getting off work it's completely dead so I'm not sure an smc reset will even work now. I bought this in 2017. Will apple replace or repair this for free? I'd understand if they didn't if this was my fault, but it seems like this is faulty hardware. Any help would be appreciated.
MacBook Pro 15", macOS 10.14