Closed TotomInc closed 6 years ago
you should use RPC for this: https://github.com/discordjs/RPC
Alright, thanks!
Discord RPC is currently in private beta according to Discord dev-docs, I get Invalid Origin
error.
@Totomlnc you should use IPC not websockets
Please describe the problem you are having in as much detail as possible:
I am trying to make a small userscript that display the current track playing from SoundCloud on Google Chrome, linked to my Discord user account. It works well with a bot-client but the user activity don't change when I'm logged in with a user account.
When testing the script, I am logged from both the Windows Discord client and the SoundCloud tab. Maybe it's because of 2 simultaneous connections on a same (user?) account.
As a side note, I can change the status (from idle to online, DND to idle, ...).
Include a reproducible code sample here, if possible:
Further details:
discord.js version: 11.3-dev for browser
node.js version: browser (Google Chrome 66.0.3359.139)
Operating system: Windows 10
Priority this issue should have: very low
[x] I found this issue while running code on a user account
[ ] I have also tested the issue on latest master, commit hash: