You would have to support each service separately, because they all work differently.
What connects Lemmy, Mastodon and other fediverse services is the ActivityPub protocol, that's the standardized communication protocol that makes everything run. The individual instances run different software that offer entirely different APIs (application programming interface; basically the language that defines how an app talks to a service) so in order to support Mastodon, Lemmy and Kbin, an app must explicitly implement the APIs for those three services.
So an app that generally just supports every service that will be added to the fediverse in the future can't be made unless we agree on some form of standard API, which we haven't (yet) and which may not even be feasable, because different services have much different capabilities.
A fediverse discord clone would offer completely different data structures and functionality than Lemmy, so an app that magically just works with both isn't possible to make.