Fixed bugs from PR

This commit is contained in:
hydrabolt
2015-11-12 21:01:41 +00:00
parent 9b0f64c736
commit 00fd78f949
8 changed files with 55 additions and 45 deletions

View File

@@ -222,7 +222,7 @@ 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 callback = arguments.length <= 1 || arguments[1] === undefined ? function (err, bans) {} : arguments[1];
var self = this;
return new Promise(function (resolve, reject) {
@@ -619,6 +619,11 @@ var Client = (function (_EventEmitter) {
get: function get() {
return this.internal.private_channels;
}
}, {
key: "voiceConnection",
get: function get() {
return this.internal.voiceConnection;
}
}]);
return Client;