RPC

A simple RPC client for Discord

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者discordjs/RPC
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2016-11-17 04:59:07
推送於2024-08-15 04:48:43
最后一次提交2022-01-05 15:39:20
發布數13
最新版本名稱4.0.1 (發布於 )
第一版名稱1.0.0 (發布於 )
用户参与
星數487
關注者數10
派生數196
提交數181
已啟用問題?
問題數112
打開的問題數7
拉請求數20
打開的拉請求數10
關閉的拉請求數33
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?