mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
Webpack build for branch 11.1-dev: 5dc83a1b03
This commit is contained in:
parent
c7e89af3c5
commit
a3721451a5
2 changed files with 10 additions and 7 deletions
|
|
@ -7155,8 +7155,10 @@ class Message {
|
||||||
reaction = new MessageReaction(this, emoji, 0, user.id === this.client.user.id);
|
reaction = new MessageReaction(this, emoji, 0, user.id === this.client.user.id);
|
||||||
this.reactions.set(emojiID, reaction);
|
this.reactions.set(emojiID, reaction);
|
||||||
}
|
}
|
||||||
if (!reaction.users.has(user.id)) reaction.users.set(user.id, user);
|
if (!reaction.users.has(user.id)) {
|
||||||
reaction.count++;
|
reaction.users.set(user.id, user);
|
||||||
|
reaction.count++;
|
||||||
|
}
|
||||||
return reaction;
|
return reaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -17220,7 +17222,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.
|
||||||
|
|
@ -17271,16 +17273,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.11.1-dev.min.js
vendored
2
discord.11.1-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue