From f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 25 Sep 2022 18:24:21 +1000 Subject: Refactor to mono-repo + upgrade packages --- src/gateway/schema/VoiceStateUpdateSchema.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/gateway/schema/VoiceStateUpdateSchema.ts (limited to 'src/gateway/schema/VoiceStateUpdateSchema.ts') 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 -- cgit 1.5.1