Microsoft Visual Studio Code can be problematic to run in some distros. I recommend running VSCodium with a patch to add the marketplace from Microsoft's VSCode to it.
To do so, you may use Flatseal to add the following environment variables:
VSCODE_GALLERY_ITEM_URL=https://marketplace.visualstudio.com/items
VSCODE_GALLERY_SERVICE_URL=https://marketplace.visualstudio.com/_apis/public/gallery
- Cause: the Discord port for Linux is a bit haphazardly maintained. There's a history of bugs that go away only to come back again.
- Fix: try Vesktop (from Flathub).
- Cause: it seems to be related to some latency control issues on PulseAudio.
- Fix: use the microphone device directly from ALSA, with the application installed from your OS' repos, not Flathub or Snap Store.
I converted that to a .deb package that you can install following instructions here.
While you may be able to find workarounds for other distros, it only officially supports Debian/Ubuntu and Fedora/RHEL. I strongly advise sticking to those if you need it.