Disclosing a mental illness at work sounds like the worst idea you could ever have.
I think it's better not to say anything and, if you wrong someone because of your illness, maybe tell that person in private and apologise. Unfortunately doing that makes it sound like an excuse.
I'm not saying I have a better solution. Some people simply aren't apt for the real world. That's sad but it's the truth.