mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +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:
|
* 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
2
typings/index.d.ts
vendored
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user