RPC

A simple RPC client for Discord

Github stars Tracking Chart

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 });

Main metrics

Overview
Name With Ownerdiscordjs/RPC
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2016-11-17 04:59:07
Pushed At2024-08-15 04:48:43
Last Commit At2022-01-05 15:39:20
Release Count13
Last Release Name4.0.1 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count487
Watchers Count10
Fork Count196
Commits Count181
Has Issues Enabled
Issues Count112
Issue Open Count7
Pull Requests Count20
Pull Requests Open Count10
Pull Requests Close Count33
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private