I have been a Windows user for all my life but decided to get a M1 mac specifically. I understand M1 Macs use a different chipset so im used to finding software installers(like Chrome, Firefox, etc) that have M1-based installers.
Today I noticed Discord does not have that and you check that based on the URL

The screenshot above was taken on a Windows but I noticed the URL is all the same.
I know Discord is based on ElectronJS but don't you have to compile your program to the chipset you wish to serve? [Never used ElectronJS, just taking a guess]
How does Discord do that?