mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
VoiceChannel user limit support
This commit is contained in:
@@ -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"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user