This package has been deprecated

Author message:

This will no longer work after V3 update, please use @drep/api

discordrep.js

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i discordrep.js

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • 911aka911