#Weird RPC Error

12 messages · Page 1 of 1 (latest)

gloomy summit
#

A bit new to RPC, not sure what went wrong:

Error: OAuth2 Authorization Error: Unknown Error

'use strict';
const DiscordRPC = require('discord-rpc');
const Config = require('./config');
const Client = new DiscordRPC.Client({ transport: Config.transport });
const HTTP = require('http');

Client.on('ready', () => {
    console.log(Client);
    console.log(`Using RPC For Application ${Client.application.name}`)
    console.log(`RPC Connected for ${Client.user.username}#${Client.user.discriminator}`)
});

// HTTP.createServer

Client.login({ clientId: Config.clientId, scopes: Config.scopes });
#

Might not see a response immediately so feel free to ping

#

Oh and heres the config:

module.exports = {
    transport: 'ipc',
    clientId: '964895674502119454',
    scopes: ['rpc', 'rpc.api']
}
vast merlin
#

rpc.api isn't a thing anymore, i believe

gloomy summit
#

oh

#

oh wait i tried without the scopes

#

and it works

#

but the readme has the scopes

#

thank you!

vast merlin
#

check when was the readme updated

gloomy summit
#

a year ago

#

lol