They could bother with pulse, but IDK how portable the API for that is, also discord working on Linux is more accidental and this getting fixed might just be because they want it fixed on the Mac side too.
It's sad to see that discord has waited over 8 years to do this, but the whole thing is soydev code anyways.
Just came across it and it's more relevant today than when it was posted