summary refs log tree commit diff
path: root/src/Schema/Identify.ts
diff options
context:
space:
mode:
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; +}