mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
feat(Speaking): add PRIORITY_SPEAKING bit (#3680)
This commit is contained in:
@@ -13,12 +13,14 @@ class Speaking extends BitField {}
|
||||
* Numeric speaking flags. All available properties:
|
||||
* * `SPEAKING`
|
||||
* * `SOUNDSHARE`
|
||||
* * `PRIORITY_SPEAKING`
|
||||
* @type {Object}
|
||||
* @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking}
|
||||
*/
|
||||
Speaking.FLAGS = {
|
||||
SPEAKING: 1 << 0,
|
||||
SOUNDSHARE: 1 << 1,
|
||||
PRIORITY_SPEAKING: 1 << 2,
|
||||
};
|
||||
|
||||
module.exports = Speaking;
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -2627,7 +2627,7 @@ declare module 'discord.js' {
|
||||
highWaterMark?: number;
|
||||
}
|
||||
|
||||
type SpeakingString = 'SPEAKING' | 'SOUNDSHARE';
|
||||
type SpeakingString = 'SPEAKING' | 'SOUNDSHARE' | 'PRIORITY_SPEAKING';
|
||||
|
||||
type StreamType = 'unknown' | 'converted' | 'opus' | 'ogg/opus' | 'webm/opus';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user