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
That must be something they added recently-ish. I wonder how walled it really is. I also wonder if they remove the arbitrary rules like the 5mb limit on files.