summary refs log tree commit diff
path: root/src/Schema/Identify.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
commit3d54ed476240702812caf0b6e1ce94bfb0329cb5 (patch)
tree9f928dee5023de75b22d6b99c25c3c3fd967da7f /src/Schema/Identify.ts
parentexport event (diff)
downloadserver-ts-3d54ed476240702812caf0b6e1ce94bfb0329cb5.tar.xz
fix models + move schemas in api and gateway
Diffstat (limited to 'src/Schema/Identify.ts')
-rw-r--r--src/Schema/Identify.ts33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Schema/Identify.ts b/src/Schema/Identify.ts
deleted file mode 100644

index cfc3702a..00000000 --- a/src/Schema/Identify.ts +++ /dev/null
@@ -1,33 +0,0 @@ -import { ActivitySchema } from "./Activity"; - -export const IdentifySchema = { - token: String, - intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt - $properties: { - // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key - $$os: String, - $$browser: String, - $$device: String, - }, - $presence: ActivitySchema, - $compress: Boolean, - $large_threshold: Number, - $shard: [Number], - $guild_subscriptions: Boolean, -}; - -export interface IdentifySchema { - token: string; - properties: { - // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key - $$os: string; - $$browser: string; - $$device: string; - }; - intents: bigint; // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt - presence?: ActivitySchema; - compress?: boolean; - large_threshold?: number; - shard?: [number]; - guild_subscriptions?: boolean; -}