mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed bugs from PR
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user