This approach is also compatible with Streamlabs OBS. Discord's 'User Settings' may be accessed by clicking on the gear icon next to your username. If it's active, you'll notice a "streamer mode" button that you can click. Toggle on the 'Disable Sounds' option in the 'Streamer Mode' options.