Skip to content
A simple RPC client for Discord
JavaScript CSS HTML
Branch: master
Clone or download
Latest commit d7929b2 Oct 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github update funding Oct 12, 2019
example [client] fix no-auth rpc flow Jun 29, 2018
src fix #46 Sep 7, 2019
test update commands, events, errors Jul 8, 2019
.eslintrc.js 3.1.0 Sep 12, 2019
.gitignore add lobby class Jun 2, 2018
.npmignore add some files to npmignore Jun 3, 2018
.npmrc 3.0.0 Sep 4, 2017
README.md update funding Oct 12, 2019
docgen.json docgen is literally satan Nov 14, 2017
jsdoc.json docs Sep 25, 2017
package.json 3.1.0 Sep 12, 2019
webpack.config.js Wrong library name in webpack config May 29, 2019

README.md


Discord server NPM version NPM downloads Dependencies

NPM info

Discord.js RPC Extension

Documentation

Rich Presence Example

Browser Example

const clientId = '187406016902594560';
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 });
You can’t perform that action at this time.