There are opioid receptors in different parts of your body, and your intestines are full of them. In particular they’re called “Mu” opioid receptors (contrasted with Delta and Kappa types) which help to regulate muscle tone in the gut. A lot of anti-diarrhea meds target this, and are in fact non-intoxicating opioids.
The body has a mechanism that says how fast stuff should be flowing through the gut.
Normally things slow down and speed up as needed, kind of like pressing the gas and brake pedals in a car.
Opiates affect this process so that your body is pressing on the brakes all the time. This results in things moving much slower than they should. The result of this is very hard stool that the body has a hard time moving, even if you take something that presses the gas pedal.
Latest Answers