Fixed unbanMember and added getBans

This commit is contained in:
abalabahaha
2015-11-11 22:46:24 -08:00
parent 3e37c5d91f
commit db7da87cb4
4 changed files with 87 additions and 5 deletions

View File

@@ -211,6 +211,25 @@ class Client extends EventEmitter {
}
// def getBans
getBans(where, callback=function(err, bans){}){
var self = this;
return new Promise((resolve, reject) => {
self.internal.getBans(where)
.then( bans => {
callback(null, bans);
resolve(bans);
})
.catch( e => {
callback(e);
reject(e);
});
});
}
// def sendFile
sendFile(where, attachment, name="image.png", callback=function(err, m){}){
var self = this;