Détail du package

discord-rpc-electron

discordjs163MIT4.0.2

A simple RPC client for Discord

discord, rpc, rich presence, remote procedural call

readme


Discord server NPM version NPM downloads Dependencies

NPM info

Discord.js RPC Extension

Documentation

Rich Presence Example

Browser Example

const clientId = '287406016902594560';
const scopes = ['rpc', 'rpc.api', 'messages.read'];

const client = new RPC.Client({ transport: 'websocket' });

client.on('ready', () => {
  console.log('Logged in as', client.application.name);
  console.log('Authed for user', client.user.username);

  client.selectVoiceChannel('81384788862181376');
});

// Log in to RPC with client id
client.login({ clientId, scopes });

changelog

CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

Changelog Categories

  • BREAKING for breaking changes.
  • Added for new features.
  • Changed for changes in existing functionality.
  • Deprecated for soon-to-be removed features.
  • Removed for now removed features.
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.

[1.0.0] - 2024-06-19

Added

  • Initial release of the project 🚀