Is epilepsy a mental illness?

Mental illnesses (or mental disorders) are problems that have an impact on your thinking, feelings, mood, and behavior. They may be occasional or long-lasting (chronic). It is not always possible to pinpoint the exact source of mental diseases. It could be caused due to physical injuries, such as damage to the head or brain, and the environment in which we live, including exposure to pollution, unhealthy food, lead-based paint, traumatic events and altered chemistry in the brain.
https://www.epilepsytreatment.org/Is-epilepsy-a-mental-illness/

epilepsy15.jpg