From b5825c33b0f07b57d174a7d0bf157b19dc99e73c Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Mon, 13 Jan 2020 14:58:40 +0100 Subject: [PATCH] feat(Speaking): add PRIORITY_SPEAKING bit (#3680) --- src/util/Speaking.js | 2 ++ typings/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/Speaking.js b/src/util/Speaking.js index c706d9953..18c1ae6a4 100644 --- a/src/util/Speaking.js +++ b/src/util/Speaking.js @@ -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; diff --git a/typings/index.d.ts b/typings/index.d.ts index 1cd568f4b..832bfae42 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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';