mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
VoiceChannel user limit support
This commit is contained in:
@@ -533,6 +533,16 @@ Sets the name and topic of a channel
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
setChannelUserLimit(channel, limit, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sets the user limit of a voice channel
|
||||
|
||||
- **channel** - A `Channel Resolvable`_
|
||||
- **limit** - A `Number`, user limit (0 - 99)
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
startTyping(channel, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -16,4 +16,18 @@ Attributes
|
||||
members
|
||||
~~~~~~~~
|
||||
|
||||
A Cache_ of Users_ that are connected to the voice channel
|
||||
A Cache_ of Users_ that are connected to the voice channel
|
||||
|
||||
userLimit
|
||||
~~~~~~~~
|
||||
|
||||
The maximum amount of users that can connect to the voice channel. If it's 0, there is no limit
|
||||
|
||||
Functions
|
||||
---------
|
||||
|
||||
setUserLimit(limit, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
| **Shortcut of** ``client.setChannelUserLimit(channel, limit, callback)``
|
||||
| **See** client.setChannelUserLimit_
|
||||
Reference in New Issue
Block a user