One of the touted advantages of Electron is that you can use web technologies and thus have engineers familiar with web technologies working on your application.
It’s very easy to see a web developer do what is perfectly fine on the web.
Heck, this feature might even have been added for their web client and then brought over to the electron version, possibly unbeknownst to the original author of the feature.
No. I wouldn’t call this a bug screwup. Just another effect of the footgun that is electron
This is a dubious claim; not sure how long you've been developing for the web, but iframes have had many many exploits fixed over the years. That's neither here nor there though, as Discord purports to be a native application and therefore should be extra careful.
Slack doesn't do anything so amazing that cannot be a portable Web application, with the browser I already have installed.