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:
Whether you agree with the Guardian’s conclusions or not, the underlying issue they’re pointing at is broader than any one company: the steady collapse of ambient trust in our information systems.
Instead of discarding stock, companies are encouraged to manage their stock more effectively, handle returns, and explore alternatives such as resale, remanufacturing, donations, or reuse.