Obviously you can't hold a Class 1 (or Class 2 for that matter) while you are taking it. A medical can only be granted once you have been off the medication for a certain period of time, usually one third the total time you were taking it.
The question was concerned with having any history of having taken anti-depressants.
Actually usernothername the greater risk comes from the symptoms of depression rather than potential side effects of medication, which is the main reason why you can't hold a medical while taking anti-depressants. The problem comes when the pilot for understandable reasons hides the symptoms and does not get the illness treated.