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
const discordRegister = require('electron-discord-register')
import discordRegister from 'electron-discord-register'
const DISCORD_APP_ID = '418562325121990661'
discordRegister(DISCORD_APP_ID)
License
MIT