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