TFA mentions that Mattermost's source is AGPL and the binaries are MIT. It's absolutely free software.
It's also $0 software, in that it being free software and open source, you can simply and legally patch out their license checks and recompile, if you so wish.
How is slack any better than discord? Both roll out stupid (and forced) updates, and slack doesn't even let me browse kinda old history if the owner doesn't pay for it. [*4] Not to mention the search is relatively terrible anyway.
The main thing that worries me about is discord is their revenue model... I just don't see how they're making money, and they keep on raising money.
There are a few good alternatives like zulip [0], matrix [1], discourse [2], Rocket Chat [3], or just plain old irc.
Although discourse isn't really a chat application but more of a open source forum software.
Check out https://www.airsend.io. We are getting started and it works well in our private testing with couple of thousand users. Currently we have apps for ios and android.
Ah, right. I should amend the parent as there are a few other open source alternatives. That said, matrix (from what I can tell) is much more widely used.
Setting up Mattermost on a VPS isn't hard.
https://mattermost.org/licensing/