WebCord is an “alternative client” for Discord, although it’s just running the Discord webpage in electron. Recently it updated its electron version so it supports sharing audio as well as video.
I tried it out today on mint (x11, pulseaudio) and it works flawlessly.
You’re technically right but discord really doesn’t care as long as you’re not doing anything harmful with the client mods. Big YouTubers like No Text To Speech publicly promote and use Vencord and never get banned, I think his server is even a discord partner.