Discord itself is entirely server-based, as described in this Discord blog post. In other words, your client is always directly communicating with a Discord server, which then re-sends your data to other clients. That means any potential attacker will see the Discord server's IP and not yours.
However, that doesn't have to be the case for other online services, which you can link in your profile. When you join a server, other users, as well as bots and user-bots, in that server will gain access to the data in your Discord profile, which they can scrape and potentially use to track down your IP. You can see which services you have linked to your account by going to the User Settings and choosing the Connections category.
Your best course of action right now is staying calm. They might try to use the pressure to their advantage and try to direct you to a phishing site to get your Discord credentials or scan a login QR code. By just following an official Discord invite (the https://discord.gg/xxxxxx
format), your credentials are safe.
Furthermore, the things you described do violate the Discord's Terms of Service in multitude of ways. You can report the server to Discord's Trust and Safety, as described in this support article.
After you're done with the report (since it requires you to get the server ID, which requires you to be present in the server), or immediately, if you're not planning on making a report, I recommend you to leave the server and report + block anyone trying to threaten/blackmail you afterwards. You're most likely not dealing with a nation-state or an organized crime group, just a group of kids having no better way to entertain themselves during the quarantine, and are safe to ignore their threats. After all, credible online threats can still be subject to prosecution and should things escalate even more, you can report them directly to the authorities.
Lastly, as a general advice, I'd highly recommend enabling two-factor authentication on Discord if you haven't done that already.
212.95.8.233
. I'm telling you that because IP alone means nothing.