If you want a diarrhoea treatment that works quickly, try an over-the-counter product like loperamide (Imodium) or Pepto-Bismol.
Antibiotics may be given if it’s caused by a bacteria or parasite which you may have gotten from consuming food or water that’s been contaminated.
Diarrhoea that’s caused by a viral infection cannot be treated with antibiotics - you may want to try treatments at home, like eating bland foods, taking probiotics and drinking rice water.