What's the opposite of a diuretic?

Diuretics are drugs that elevate the rate of urination. Are there any drugs which (safely) decrease it?

(Note, that I’m not asking this for the purpose of soliciting medical advice. Long ago I used to take a drug, one of whose common side effects was diuresis—I’d have to use the bathroom, like, every forty minutes. I don’t take this drug any more, but I’m curious if, back then, there was any other drug I might have taken simultaneously which would have counteracted the diuretic effect. Of course, I would never try this without first consulting a physician for adverse drug interactions.)

“Antidiuretics”, oddly enough. Vasopressin for example.