electron-discord-register
Register an application protocol to launch your Electron app with Discord—without native modules.
This module can be used to add support for Discord's Rich Presence Ask to Join and Spectate features.
Equivalent to calling Discord_Register()
or Discord_Initialize()
with the autoRegister
parameter using the Discord SDK.
Currently only supports Windows and macOS.
Install
npm install electron-discord-register
Usage
// CommonJSconst discordRegister = // ES module // Use your Discord application IDconst DISCORD_APP_ID = '418562325121990661' // Call on application startup in main or renderer process
License
MIT