summary refs log tree commit diff
path: root/src/gateway/schema/VoiceStateUpdateSchema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/schema/VoiceStateUpdateSchema.ts')
-rw-r--r--src/gateway/schema/VoiceStateUpdateSchema.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gateway/schema/VoiceStateUpdateSchema.ts b/src/gateway/schema/VoiceStateUpdateSchema.ts
new file mode 100644

index 00000000..f6480414 --- /dev/null +++ b/src/gateway/schema/VoiceStateUpdateSchema.ts
@@ -0,0 +1,17 @@ +export const VoiceStateUpdateSchema = { + $guild_id: String, + $channel_id: String, + 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 { + guild_id?: string; + channel_id?: string; + self_mute: boolean; + self_deaf: boolean; + self_video?: boolean; + preferred_region?: string; +} \ No newline at end of file