1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-23 19:02:37 +01:00

Added preferred_region optional property of VoiceStateUpdateSchema to allow electron client to connect to voice without crashing

This commit is contained in:
Madeline 2022-03-08 21:57:20 +11:00
parent 3b439f74f1
commit f5f007e81f

View File

@ -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;
}