Since Discord has decided to set itself on fire you might be looking for an alternative. Fluxer is open source (AGPL), selfhostable and based in Sweden. But maybe wait a while before you try to install the server yourself because the dev writes on github:
I know it’s hard to resist, but please wait a little longer before you dive deep into the current codebase or try to set up self-hosting. I’m aware the current stack isn’t very lightweight. In the next update, self-hosting should be straightforward, with a small set of services: Fluxer Server (TypeScript) using SQLite for persistence, Gateway (Erlang), and optionally LiveKit for voice and video.
The developer hosted instance has a Nitro-like premium tier for their service named Plutonium, if you selfhost you get all the premium features for free.
Fluxer is not federated (yet), but according to the website, federation is planned in the near(-ish) future. Furthermore the service is a bit spotty at the moment as they are fighting with an unusually big influx of new users.



I can’t register on it. Captcha authentification is broken
Edit: Registration works now. But where is the software so I can self-host an instance?