feat(Speaking): add PRIORITY_SPEAKING bit (#3680)

This commit is contained in:
SpaceEEC
2020-01-13 14:58:40 +01:00
committed by Amish Shah
parent f74ae12d6a
commit b5825c33b0
2 changed files with 3 additions and 1 deletions

View File

@@ -13,12 +13,14 @@ class Speaking extends BitField {}
* Numeric speaking flags. All available properties: * Numeric speaking flags. All available properties:
* * `SPEAKING` * * `SPEAKING`
* * `SOUNDSHARE` * * `SOUNDSHARE`
* * `PRIORITY_SPEAKING`
* @type {Object} * @type {Object}
* @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking} * @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking}
*/ */
Speaking.FLAGS = { Speaking.FLAGS = {
SPEAKING: 1 << 0, SPEAKING: 1 << 0,
SOUNDSHARE: 1 << 1, SOUNDSHARE: 1 << 1,
PRIORITY_SPEAKING: 1 << 2,
}; };
module.exports = Speaking; module.exports = Speaking;

2
typings/index.d.ts vendored
View File

@@ -2627,7 +2627,7 @@ declare module 'discord.js' {
highWaterMark?: number; highWaterMark?: number;
} }
type SpeakingString = 'SPEAKING' | 'SOUNDSHARE'; type SpeakingString = 'SPEAKING' | 'SOUNDSHARE' | 'PRIORITY_SPEAKING';
type StreamType = 'unknown' | 'converted' | 'opus' | 'ogg/opus' | 'webm/opus'; type StreamType = 'unknown' | 'converted' | 'opus' | 'ogg/opus' | 'webm/opus';