There's Shoot as a fediverse alternative to Discord.
Otherwise, as others have said, IRC, Matrix, or Teamspeak are worth looking into. Especially the latter got a major refresh at one point, so it's not the dinosaur you might expect from its age.
Perhaps it could potentially be forked from the already existing Lemmy?
I really don't see the point of turning a discussion forum into an instant messaging platform. Like, the requirements are completely different. You might as well start from square one than trying to transform one into the other.