Discordjs RPC Save

A simple RPC client for Discord

Project 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 });
Open Source Agenda is not affiliated with "Discordjs RPC" Project. README Source: discordjs/RPC
Stars
458
Open Issues
16
Last Commit
6 months ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating