Breastfeeding and drinking on special occasion?

I was always under the impression that you can't drink while breastfeeding but I looked it up online and it said that you can time your drink so that it clears from your breast milk before feeding baby. I was just curious because the holidays are coming up and I would like to be educated 🙃 what do you ladies do and what have you heard?