I don't blame you for the confusion. Their usage of the term "server" is extremely misleading. Should have called them "guilds" or something like they do in their API.
If you actually want to self-host Discord, Spacebar Chat is a third party reimplementation of the Discord protocol for self-hosting https://github.com/spacebarchat/server