mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Document GuildChannel.edit, add VoiceChannel.setUserLimit, fix typo (#866)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
2a50dad852
commit
9a61de1493
@@ -72,7 +72,21 @@ class VoiceChannel extends GuildChannel {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setBitrate(bitrate) {
|
||||
return this.rest.client.rest.methods.updateChannel(this, { bitrate });
|
||||
return this.edit({ bitrate });
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the user limit of the channel
|
||||
* @param {number} userLimit The new user limit
|
||||
* @returns {Promise<VoiceChannel>}
|
||||
* @example
|
||||
* // set the user limit of a voice channel
|
||||
* voiceChannel.setUserLimit(42)
|
||||
* .then(vc => console.log(`Set user limit to ${vc.userLimit} for ${vc.name}`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setUserLimit(userLimit) {
|
||||
return this.edit({ userLimit });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user