1.0.1 • Published 8 years ago

dban.js v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

Dban.js

DBan is a global banning service for Discord

Examples: events

to see more events go here Doc

var Dban = require("dban.js");

Dban.on("welcome", function(data){
   console.log("connected");
});

Examples: function

var Dban = require("dban.js");

Dban.getBans(function(err, bans){
  if(err) return throw err;
  console.log(bans);
});

Functions list

getBans(callbacks)
callbacks:
  err: if an error happen
  bans: return the list of banned users
getUser(userid, callbacks)
userid: the user id to get
callbacks:
  err: if an error happen
  user: return the user
ban(user, token, callbacks)
user: the user oject you can find an example in the doc
token: the token
callbacks:
  err: if an error happen
  user: return the banned user
unban(user, token, callbacks)
user: the user oject you can find an example in the doc
token: the token
callbacks:
  err: if an error happen
  status: (String)

1.0.1

8 years ago

1.0.0

8 years ago