Skip to content
/ RPC Public
forked from discordjs/RPC

A simple RPC client for Discord

License

Notifications You must be signed in to change notification settings

Voxelum/RPC

 
 

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

About

A simple RPC client for Discord

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • CSS 1.6%
  • HTML 0.9%