Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

electron-discord-register

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-discord-register

Register an application protocol to launch your Electron app with Discord.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
15
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

// CommonJS
const discordRegister = require('electron-discord-register')

// ES module
import discordRegister from 'electron-discord-register'

// Use your Discord application ID
const DISCORD_APP_ID = '418562325121990661'

// Call on application startup in main or renderer process
discordRegister(DISCORD_APP_ID)

License

MIT

Keywords

electron

FAQs

Package last updated on 24 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts