mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 4342ed29a8
This commit is contained in:
parent
c1961e7804
commit
d72e75ffa6
2 changed files with 6 additions and 5 deletions
|
|
@ -17006,7 +17006,7 @@ class VoiceChannel extends GuildChannel {
|
||||||
* The bitrate of this voice channel
|
* The bitrate of this voice channel
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.bitrate = data.bitrate;
|
this.bitrate = data.bitrate * 0.001;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum amount of users allowed in this channel - 0 means unlimited.
|
* The maximum amount of users allowed in this channel - 0 means unlimited.
|
||||||
|
|
@ -17057,16 +17057,17 @@ class VoiceChannel extends GuildChannel {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the bitrate of the channel.
|
* Sets the bitrate of the channel (in kbps).
|
||||||
* @param {number} bitrate The new bitrate
|
* @param {number} bitrate The new bitrate
|
||||||
* @returns {Promise<VoiceChannel>}
|
* @returns {Promise<VoiceChannel>}
|
||||||
* @example
|
* @example
|
||||||
* // Set the bitrate of a voice channel
|
* // Set the bitrate of a voice channel
|
||||||
* voiceChannel.setBitrate(48000)
|
* voiceChannel.setBitrate(48)
|
||||||
* .then(vc => console.log(`Set bitrate to ${vc.bitrate} for ${vc.name}`))
|
* .then(vc => console.log(`Set bitrate to ${vc.bitrate}kbps for ${vc.name}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setBitrate(bitrate) {
|
setBitrate(bitrate) {
|
||||||
|
bitrate *= 1000;
|
||||||
return this.edit({ bitrate });
|
return this.edit({ bitrate });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue