Exactly. I have ADHD and find it really difficult to process if people don't accept me, or even if I get shouted out or corrected. However, I'm lucky that I was encouraged from an early age to fully be independent, not to answer to anyone to or worry about their opinions, and understand that if people don't want to be friends, you didn't need them around anyway.
My parents always told me "As long as you can look yourself in the mirror at the end of the day and still be proud of who you are, that's enough".