summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-12 13:10:05 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-12 13:10:05 +1100
commitb455f4a181894dc78484c1230c226207b5c01cd3 (patch)
treea185e3eeb1a0bf8e8c396be5a4cb98385e754818 /gateway
parentMerge branch 'master' into slowcord (diff)
parentAdded preferred_region optional property of VoiceStateUpdateSchema to allow e... (diff)
downloadserver-b455f4a181894dc78484c1230c226207b5c01cd3.tar.xz
Merge branch 'maddyrtc' into slowcord
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/schema/VoiceStateUpdateSchema.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/gateway/src/schema/VoiceStateUpdateSchema.ts b/gateway/src/schema/VoiceStateUpdateSchema.ts
index 9efa191e..f6480414 100644
--- a/gateway/src/schema/VoiceStateUpdateSchema.ts
+++ b/gateway/src/schema/VoiceStateUpdateSchema.ts
@@ -3,7 +3,8 @@ export const VoiceStateUpdateSchema = {
 	$channel_id: String,
 	self_mute: Boolean,
 	self_deaf: Boolean,
-	self_video: Boolean,
+	$self_video: Boolean,	//required in docs but bots don't always send it
+	$preferred_region: String,
 };
 
 export interface VoiceStateUpdateSchema {
@@ -11,5 +12,6 @@ export interface VoiceStateUpdateSchema {
 	channel_id?: string;
 	self_mute: boolean;
 	self_deaf: boolean;
-	self_video: boolean;
-}
+	self_video?: boolean;
+	preferred_region?: string;
+}
\ No newline at end of file