summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-01 11:07:56 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-01 11:07:56 +0200
commit2e7ec1ec63742e8ebc7bf3df567609137e37d1bf (patch)
treeac87679903617609969f4df1fc454bff00bc4525 /gateway
parentMerge pull request #299 from AlTech98/typeorm (diff)
downloadserver-2e7ec1ec63742e8ebc7bf3df567609137e37d1bf.tar.xz
fix #295
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/schema/Identify.ts53
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,