1.0.6 • Published 6 years ago

discordrep.js v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

discordrep.js

size npm

DiscordRep API

Q: how to get API key? A: Use the command -api generate in our discord server

Install

$ npm install discordrep.js

Usage

Example

const DiscordRep = require("discordrep.js");
const dRep = new DiscordRep("YOUR_API_KEY_HERE");

async function fetchRep(id) {
    let userData = await dRep.getRep(id);
    console.log(userData)
}

fetchRep('538855659714641960')

 /*
 console output:
 {
   "id": "538855659714641960",
   "upvotes": 13,
   "downvotes": 0,
   "reputation": 3,
   "xp":12409
}
*/
getRep('id') // gets user's reputation

getUser('id') // gets general info exp: bio/donator...

getBan('id') // Checks if user is banned and returns ban info

getWarn('id') // Checks if user is warned and returns warn info
1.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago