summary refs log tree commit diff
path: root/src/schema
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-18 22:04:29 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-18 22:04:29 +0200
commitda08497a19ab0635a8bd78e499cfc61e54352dcc (patch)
tree7fcda3b1ebca8e8a902c066945e02206b089fe51 /src/schema
parentMerge branch 'master' of https://github.com/discord-open-source/discord-gateway (diff)
downloadserver-da08497a19ab0635a8bd78e499cfc61e54352dcc.tar.xz
:construction: WIP member list + voice
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/LazyRequest.ts15
-rw-r--r--src/schema/VoiceStateUpdate.ts.ts13
2 files changed, 28 insertions, 0 deletions
diff --git a/src/schema/LazyRequest.ts b/src/schema/LazyRequest.ts
new file mode 100644

index 00000000..b8c51431 --- /dev/null +++ b/src/schema/LazyRequest.ts
@@ -0,0 +1,15 @@ +export interface LazyRequest { + activities: boolean; + channels: Record<string, [number, number]>; + guild_id: string; + threads: boolean; + typing: true; +} + +export const LazyRequest = { + activities: Boolean, + channels: Object, + guild_id: String, + threads: Boolean, + typing: Boolean, +}; diff --git a/src/schema/VoiceStateUpdate.ts.ts b/src/schema/VoiceStateUpdate.ts.ts new file mode 100644
index 00000000..5e3e35e0 --- /dev/null +++ b/src/schema/VoiceStateUpdate.ts.ts
@@ -0,0 +1,13 @@ +export const VoiceStateUpdateSchema = { + guild_id: String, + channel_id: String, + self_mute: Boolean, + self_deaf: Boolean, +}; + +export interface VoiceStateUpdateSchema { + guild_id: string; + channel_id: string; + self_mute: boolean; + self_deaf: boolean; +}