diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-01 11:07:56 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-01 11:07:56 +0200 |
commit | e5bac0af0d5c2c44ff26ade0d7cee58eb5e5008f (patch) | |
tree | b2800a3a2ec150732f2b4ce742621d8ee3b57e83 /gateway | |
parent | Merge pull request #299 from AlTech98/typeorm (diff) | |
download | server-e5bac0af0d5c2c44ff26ade0d7cee58eb5e5008f.tar.xz |
fix #295
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/src/schema/Identify.ts | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/gateway/src/schema/Identify.ts b/gateway/src/schema/Identify.ts index f6d95204..cbd6630a 100644 --- a/gateway/src/schema/Identify.ts +++ b/gateway/src/schema/Identify.ts @@ -3,32 +3,33 @@ 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 for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key - $os: String, - $os_arch: String, - $browser: String, - $device: String, - $$os: String, - $$browser: String, - $$device: String, - $browser_user_agent: String, - $browser_version: String, - $os_version: String, - $referrer: String, - $$referrer: String, - $referring_domain: String, - $$referring_domain: String, - $referrer_current: String, - $referring_domain_current: String, - $release_channel: String, - $client_build_number: Number, - $client_event_source: String, - $client_version: String, - $system_locale: String, - $window_manager: String, - $distro: String, - }, + $properties: Object, + // { + // // bruh discord really uses $ in the property key for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key + // $os: String, + // $os_arch: String, + // $browser: String, + // $device: String, + // $$os: String, + // $$browser: String, + // $$device: String, + // $browser_user_agent: String, + // $browser_version: String, + // $os_version: String, + // $referrer: String, + // $$referrer: String, + // $referring_domain: String, + // $$referring_domain: String, + // $referrer_current: String, + // $referring_domain_current: String, + // $release_channel: String, + // $client_build_number: Number, + // $client_event_source: String, + // $client_version: String, + // $system_locale: String, + // $window_manager: String, + // $distro: String, + // }, $presence: ActivitySchema, $compress: Boolean, $large_threshold: Number, |