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

@@ -8,9 +8,14 @@ export default class VoiceChannel extends ServerChannel{
constructor(data, client, server){
super(data, client, server);
this.members = data.members || new Cache();
this.userLimit = data.user_limit || 0;
}
join(callback = function () { }) {
return this.client.joinVoiceChannel.apply(this.client, [this, callback]);
}
setUserLimit() {
return this.client.setChannelUserLimit.apply(this.client, [this, arguments]);
}
}