The term "discredits" generally means to harm someone's reputation or credibility. There are several antonyms for "discredits" that can be used to convey the opposite meaning. The first possible antonym is "upholds," which means to maintain or support something or someone. Another antonym is "vindicates," which means to clear someone of blame or suspicion. "Endorses," a synonym for approves, also means to express support for an idea or person, which can be a good antonym for "discredits."
The term "credits" is an apt antonym for "discredits" since it means gaining recognition or acknowledgment for achievements or abilities. "Validates" and "affirms" are also suitable antonyms for "discredits.