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-06 15:35:02 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 15:35:02 +0100
commit84d714324ad65de94cfb3076daa8f6622a54e438 (patch)
tree563a0686d87db0bba3d6e1ce3aa2f561dfe58998 /src/Schema/Identify.ts
parentupdate missing-native-js-functions version (diff)
downloadserver-84d714324ad65de94cfb3076daa8f6622a54e438.tar.xz
:sparkles: Schema interfaces
Diffstat (limited to 'src/Schema/Identify.ts')
-rw-r--r--src/Schema/Identify.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Schema/Identify.ts b/src/Schema/Identify.ts

index 8775fac3..3a7182db 100644 --- a/src/Schema/Identify.ts +++ b/src/Schema/Identify.ts
@@ -15,3 +15,19 @@ export const IdentifySchema = { $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; +}