- Feature Description: I’d like to update the Discord user activity of my users depending on Overwolf events.
- impact for my app: Low.
- What is your current pain point? I’m unable to connect to the Discord rpc because of browser restriction.
- What do you have in mind to solve it? Writing a c# plugin
sample code in node.js:
import { Client } from 'discord-rpc';
const client = new Client({
transport: 'ipc'
});
client.on('ready', () => {
client.setActivity({
details: 'Necromancer - Level 91 (Expedition)',
state: `In Cartographer's Hideout`,
startTimestamp: Date.now(),
largeImageKey: 'necromancer',
largeImageText: 'Necromancer'
});
});
client
.login({ clientId: 'xxx' })
.catch(console.error)