There were potential competitors back when it really didn't matter - the early 00s. Even AIM at its feature peak could do pretty much everything Discord can do now (save for some of the server organization and custom content), but only a fraction in the US had Broadband to take advantage of it.
And it wasn't written in resource-hungry Electron.
And it wasn't written in resource-hungry Electron.