If you are the only one trying to maintain a friendship, they aren’t your friend and your time and energy would be better spent somewhere else
If someone is clearly depressed, prefers alone time, or needs your help before something bad happens, this is not the tip for you to follow. Please reach out to that person and let them know you care. I’ve been on that end and it is so reassuring to hear from someone even if you don’t feel like being around anyone.
But if you have friends who you consistently try to make plans with, they decline or take a rain check with a “oh we’ll have to hang out soon” and never get back with you, yet you see them out with other friends all the time, then yes, this is very applicable. You deserve better friends.
Obviously if they are trying to take your money or being abusive then run don't walk away, but long term friendships go through changes just like any relationship. Life happens.
It's hard to maintain friendship with someone who spends the first 5 minutes of contact scolding me for not calling more.
On the other hand, my best long time friendship is so chill. We can go a year without talking and still just pickup where we left off. The only way to have a lifelong friend is to stay friends.