If you had it for a while, there might be a chance it could have damaged your tubes. Now since you mention that you still have discharge, it's likely you still have the infection.
First things first: You need to eradicate these bugs from your body by taking the antibiotics for the prescribed duration. If not, they would continue to damage your tubes. Understand please, no tubes means no pregnancy
On the brighter side, if you are going to treat your infections now and get rid of these bugs, there is still a chance that your tubes were not damaged a lot and you could conceive and give birth in a normal way. There is a test called hysterosalphingogram done by your gynecologist which would tell you if your tubes are in good condition still. Based on that, you can try to conceive normally.
I Hope and wish everything comes out great for you.