If a nation-state, or ethnoreligious group, has rights, then efforts to destroy it would not gain popular support.
Do ethnoreligious groups have a right to survival without suffering genocide? Does the international community, or Security Council, have a duty to prevent genocide, or the extinction of any particular nation-state?
No, it does not. That's not how sovereignty works. nation states' obligations are only towards their own nation. Even honoring of treaties is expected only in so far as it is in the best interest of their nation to do so. There is no grand human coalition that has an obligation to intervene on behalf of the innocent being harmed by wars and genocide. it's a nice idea, but consent of the governed and all. Those people would have to first get their government to consent to participating under organizations like the ICJ.
In simpler terms, for any supposed international community to be valid, similar to governments, it needs the threat of violence to enforce its will. That means you have to volunteer yourself or your children to enforce that community's will. The rest is just details, I'm sure you'd want to have a say in exactly what the agreement is over the specifics of the "international community's" will would be, and therein lies the obstacle.
In the 90's there was some post-soviet political capital and overall good will credited to the US and its allies as a result of a new era of hope and prosperity and all that soft power stuff. That's why bombing Serbia and things like war crimes for milosevich and his pals was a thing. It was NATO, not the international community then. same as Afghanistan. There has never been any actual "international community" that did anything but pass resolutions at the UN. There has never been even so much as a truly international peace keeping force deployed anywhere by the UN.
It all just comes down to whether this supposed community has the right to do anything over other non-participating nations' sovereign real while maintaining any semblance of legitimacy. interference is interference, whether the US is kidnapping a dictator, or bombing one, or assassinating another, it can be done, but not with any legitimacy, and it is usually the US that's the arm that swings the sword.