Skip to content

discordjs/RPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9e7de2a · Jan 5, 2022
Dec 23, 2020
Jul 27, 2020
Jun 14, 2021
Jun 14, 2021
Jul 27, 2020
Sep 17, 2020
Jun 3, 2018
Sep 4, 2017
Jan 5, 2022
Jul 27, 2020
Nov 14, 2017
Sep 25, 2017
Jun 14, 2021
May 29, 2019

Repository files navigation


Discord server NPM version NPM downloads Dependencies

NPM info

Discord.js RPC Extension

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