mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Set bitrate for voice channels support (#363)
* Set bitrate for voice channels * Docs for bitrate settings and values
This commit is contained in:
committed by
abalabahaha
parent
fe1d0bb595
commit
bea1663052
@@ -543,6 +543,16 @@ Sets the user limit of a voice channel
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
setChannelBitrate(channel, bitrate, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sets the bitrate of a voice channel
|
||||
|
||||
- **channel** - A `Channel Resolvable`_
|
||||
- **bitrate** - A `Number`, bitrate (in kb/s) (8 - 96)
|
||||
- **callback** - `function` taking the following:
|
||||
- **error** - error if any occurred
|
||||
|
||||
startTyping(channel, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -23,6 +23,11 @@ userLimit
|
||||
|
||||
The maximum amount of users that can connect to the voice channel. If it's 0, there is no limit
|
||||
|
||||
bitrate
|
||||
~~~~~~~~
|
||||
|
||||
The bitrate of the voice channel (in kb/s).
|
||||
|
||||
Functions
|
||||
---------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user