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