summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-08 21:57:20 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-08 21:57:20 +1100
commitf5f007e81fd2a7ab3215f3de743fe1ba040333e9 (patch)
treebd8e1125ed79b9d4df19746ff4449c23d09516d3 /gateway
parentMerge branch 'fix/electron_premium_since' into maddyrtc (diff)
downloadserver-f5f007e81fd2a7ab3215f3de743fe1ba040333e9.tar.xz
Added preferred_region optional property of VoiceStateUpdateSchema to allow electron client to connect to voice without crashing
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/schema/VoiceStateUpdateSchema.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/gateway/src/schema/VoiceStateUpdateSchema.ts b/gateway/src/schema/VoiceStateUpdateSchema.ts
index c046600d..f6480414 100644
--- a/gateway/src/schema/VoiceStateUpdateSchema.ts
+++ b/gateway/src/schema/VoiceStateUpdateSchema.ts
@@ -4,6 +4,7 @@ export const VoiceStateUpdateSchema = {
 	self_mute: Boolean,
 	self_deaf: Boolean,
 	$self_video: Boolean,	//required in docs but bots don't always send it
+	$preferred_region: String,
 };
 
 export interface VoiceStateUpdateSchema {
@@ -12,4 +13,5 @@ export interface VoiceStateUpdateSchema {
 	self_mute: boolean;
 	self_deaf: boolean;
 	self_video?: boolean;
+	preferred_region?: string;
 }
\ No newline at end of file