Medication may be prescribed to you by a psychologist. There are many different types & brands of anti-depressant drugs. For some, drugs have remedied the brain gut anxiety cycle and their symptoms greatly improved. Others have not found relief. Anti-depressants may be most beneficial to those who are suffering from pain dominant IBS. While you may not find physical relief from an anti-depressant, it may be worthwhile to investigate them to alleviate some of the anxiety & panic associated with IBS.
Disclaimer: I am not a medical professional. Using this information is at your own risk.