To screen share on discord with sound you must go to the voice and video setting option, then click on reset voice settings and now go back to screen sharing, your audio should now be working.