RPC
RPC copied to clipboard
A simple RPC client for Discord
On Darwin (macOS), under a parent process, the environment args might not be correctly passed and `os.tmpdir()` returns a subdirectory of the root temp dir. This PR therefore uses `os.tmpdir()`...
When using discord-rpc in combination with Vue 2, an error occurs. Help me please `./~/discord-rpc/src/client.jsModule parse failed: D:\AnimeShip\node_modules\discord-rpc\src\client.js Unexpected token (634:8)You may need an appropriate loader to handle this file...
I am setting the activity with: ``` buttons: [ { label: 'Join', url: 'https://discord.com/', }, ], ``` The button appears but when you click on it, nothing happens. What can...
Added a method to get the user's current voice channel
This allows for sending activity types described [here](https://discord.com/developers/docs/topics/gateway#activity-object-activity-types). I also included some handy constants to use. This fixes #146
Better Documentation 📖 1. The repo is not beginner-friendly, we've to get more examples and meaning of different things 2. We can also make something like Discord.js Guide for this...
Discord rpc spec: https://discord.com/developers/docs/topics/rpc#getselectedvoicechannel Is there any reason to not implement this? Merge #156
The scope rpc.api was removed and now throws an error, thus should be removed from the example. Now uses ipc instead of websocket, since websocket requires whitelist afaik, thus it...
In line 17 in rpc.js, the error was found: ``` Unhandled Promise Rejection: ReferenceError: Can't find variable: process ``` The same code can be found in #163