self-rpc-builder
v0.0.3
Published
This Module, Discord Custom Rich Presence Will Become Easier With Self-Bot
Downloads
2
Readme
Usage
const { CustomRichPresence } = require("self-rpc-builder")
const client = new CustomRichPresence("RPC-BOT-ID")
const r = client.set()
//.setType('STREAMING')
//.setURL('https://youtube.com/watch?v=dQw4w9WgXcQ') // Streaming On Youtube
.setState('online') // online, dnd, idle
.setName('TEXT')
.setDetails('Test')
/*.setParty({
max: 9,
current: 1,
id: Discord.getUUID(),
})*/ // Playing 1/5
//.setStartTimestamp(Date.now()) // Playing 00:13
.setAssetsLargeImage('IMAGE-URL')
.setAssetsLargeText('TEXT')
.setAssetsSmallImage('IMAGE-URL')
.setAssetsSmallText('TEXT')
.addButton('Buton', 'https://example.com/')// Maximum Addable Button: 2
client.login("YOUR-ACCOUNT-TOKEN", r)
How Can I Get My Own Account Token?
- Open Discord in browser
- Open Developer Panel (CTRL + SHIFT + I)
- Click Console
- Paste the following code into the console
(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()
- It Will Throw Your Token There You Can Copy It And Use It!