Simple Discord API Wrapper for Node.js
A Node.js simple wrapper for the SelfBot Discord API
*** NOTE : USE AT YOUR OWN RISK! ***
• Installation
Latest version: 1.0.0
npm install dc-api
• Quick Example
//1. Import dc-api
const Discord = require('dc-api');
//2. Initiate the Discord API
const bot = new Discord("DISCORD_TOKEN");
//3. Make calls
bot.GetMe().then( r => { console.log(r) })
• How to get SelfBot Discord Token ?
Copy and paste this javascript into url bar (while open discord on web)
javascript:var i = document.createElement('iframe');i.onload = function(){var localStorage = i.contentWindow.localStorage;prompt('DC Token By @github.com/vsec7', localStorage.getItem('token').replace(/["]+/g, ''));};document.body.appendChild(i);
• Feature Functions
- GetMe()
Get authenticated user info from token
bot.GetMe()
- GetMessage()
Get message from channel
bot.GetMessage(channel_id, limit)
- SendMessage()
Send message to channel
bot.SendMessage(channel_id, text_message)
- DeleteMessage()
Delete message from channel
bot.DeleteMessage(channel_id, message_id)
- JoinGuild()
Join server guild
bot.JoinGuild(invite_code)
- LeaveGuild()
Leave server guild
bot.LeaveGuild(guild_id)
Donation : viloid.sol (my solana wallet address)