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

@@ -26,6 +26,7 @@ var VoiceChannel = (function (_ServerChannel) {
_ServerChannel.call(this, data, client, server);
this.members = data.members || new _UtilCache2["default"]();
this.userLimit = data.user_limit || 0;
}
VoiceChannel.prototype.join = function join() {
@@ -34,6 +35,10 @@ var VoiceChannel = (function (_ServerChannel) {
return this.client.joinVoiceChannel.apply(this.client, [this, callback]);
};
VoiceChannel.prototype.setUserLimit = function setUserLimit() {
return this.client.setChannelUserLimit.apply(this.client, [this, arguments]);
};
return VoiceChannel;
})(_ServerChannel3["default"]);