Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/discordjs/RPC
A simple RPC client for Discord
https://github.com/discordjs/RPC
discord discord-rpc
Last synced: 5 days ago
JSON representation
A simple RPC client for Discord
- Host: GitHub
- URL: https://github.com/discordjs/RPC
- Owner: discordjs
- License: mit
- Created: 2016-11-17T04:59:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T04:48:43.000Z (3 months ago)
- Last Synced: 2024-10-29T15:14:56.313Z (5 days ago)
- Topics: discord, discord-rpc
- Language: JavaScript
- Homepage:
- Size: 845 KB
- Stars: 474
- Watchers: 12
- Forks: 193
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-discord - RPC - A simple RPC client for Discord written in javascript. (Game SDK & RPC Bindings)
README
# Discord.js RPC Extension
### [Documentation](https://discord.js.org/#/docs/rpc/)
### [Rich Presence Example](https://github.com/discordjs/RPC/blob/master/example)
### __Browser__ Example
```javascript
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 });
```