const clientId = '868016688090710067';
const scopes = ['rpc', 'rpc.voice'];
const client = new RPC.Client({ transport: 'ipc' });
client.on('ready', async () => {
console.log('Logged in as', client.application.name);
console.log('Authed for user', client.user.username);
const channel = await RPC.getSelectedVoiceChannel();
});
// Log in to RPC with client id
client.login({ clientId, scopes });
forked from discordjs/RPC
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple RPC client for Discord
License
remuring9999/RPC
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A simple RPC client for Discord
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 97.6%
- CSS 1.5%
- HTML 0.9%