discord-custom-rpc
v0.0.4
Published
Setup your custom discord rpc
Downloads
6
Readme
Discord Custom Rpc
CommandKit is a library that makes it easy to create your own custom discord rpc.
Features
- Easy to use 🚀
Installation
To install Discord Custom Rpc, simply run the following command:
For npm:
npm install discord-custom-rpc
Yarn:
yarn add discord-custom-rpc
pnpm:
pnpm add discord-custom-rpc
Usage
This is a simple overview of how to set up this library with all the options.
// index.js
const { CustomRichPresence } = require('discord-custom-rpc');
const clientId = 'YOUR_APPLICATION_CLIENT_ID';
const client = new CustomRichPresence(clientId);
client
.setDetails('Test')
.setTimestamp(Date.now())
.setSmallImage('IMAGE-URL-SMALL', 'Small Image Text')
.setLargeImage('IMAGE-URL-LARGE', 'Large Image Text')
.addButton('Button1', 'https://example.com/button1')
.addButton('Button2', 'https://example.com/button2')
.setParty({
size: 4, // Total number of party members
current: 2, // Number of party members currently in the party
id: 'party1123' // A unique identifier for the party
})
.setPresence();
Support and Suggestions
If you are looking for support or want to provide suggestions, check out the Discord.