mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed unbanMember and added getBans
This commit is contained in:
@@ -219,6 +219,23 @@ var Client = (function (_EventEmitter) {
|
||||
});
|
||||
};
|
||||
|
||||
// def getBans
|
||||
|
||||
Client.prototype.getBans = function getBans(where) {
|
||||
var callback = arguments.length <= 1 || arguments[1] === undefined ? function (err, logs) {} : arguments[1];
|
||||
|
||||
var self = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
self.internal.getBans(where).then(function (bans) {
|
||||
callback(null, bans);
|
||||
resolve(bans);
|
||||
})["catch"](function (e) {
|
||||
callback(e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// def sendFile
|
||||
|
||||
Client.prototype.sendFile = function sendFile(where, attachment) {
|
||||
|
||||
Reference in New Issue
Block a user