1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 10:52:31 +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 8a312972c8
commit fac020f3fb
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

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