VoiceChannel user limit support

This commit is contained in:
Programmix
2016-05-21 00:43:28 -07:00
committed by abalabahaha
parent d42cbd1c14
commit ab2c9d9a8d
8 changed files with 104 additions and 12 deletions

View File

@@ -969,6 +969,14 @@ var Client = (function (_EventEmitter) {
return this.internal.setChannelPosition(channel, position).then(dataCallback(callback), errorCallback(callback));
};
// def setChannelUserLimit
Client.prototype.setChannelUserLimit = function setChannelUserLimit(channel, limit) {
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
return this.internal.setChannelUserLimit(channel, limit).then(dataCallback(callback), errorCallback(callback));
};
// def updateChannel
Client.prototype.updateChannel = function updateChannel(channel, data) {