Electron is a full Chrome instance, plus whatever else makes up the application.
If it were simply the Chrome install that would imply Electron is 9GB+ by itself, which it most certainly is not.
Therefore, if you have an old install and have gone thru several (many) cycles of updates, the installation directory could be riddled with old versions and update files that make up the bulk of that 10 gig.
I dont have discord, so what i said is just conjecture, but bad update files laying around isn't uncommon imho.