4.0.1 • Published 5 years ago
@maistho/discord-rpc v4.0.1
Discord.js RPC Extension
Documentation
Rich Presence Example
Example
const clientId = '187406016902594560'
const scopes = ['rpc', 'rpc.api', 'messages.read']
const client = new RPC.Client({ transport: 'ipc' })
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 })