summary refs log tree commit diff
path: root/src/assets/datastru.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
commitf5a723d9b491005ec5dd9377802e5d143100e346 (patch)
treec9d7805c918949c05298a11209e8d92dc1e861d9 /src/assets/datastru.ts
parentUpdate README.md (diff)
downloadserver-f5a723d9b491005ec5dd9377802e5d143100e346.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-gateway into main
Diffstat (limited to 'src/assets/datastru.ts')
-rw-r--r--src/assets/datastru.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/assets/datastru.ts b/src/assets/datastru.ts
new file mode 100644

index 00000000..038102ec --- /dev/null +++ b/src/assets/datastru.ts
@@ -0,0 +1,15 @@ +//* https://discord.com/developers/docs/topics/gateway + +import { OPCODES, SEQUENCENUM } from "./codes"; + +export interface message_prod { + op: OPCODES; + d: object; + s: SEQUENCENUM; + t: string; +} + +export interface message_dev { + req_type: "new_auth" | "check_auth"; + token?: string; +}