summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 17:59:29 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 17:59:29 +0200
commitf6f550f10a7a78d5495a1ab44a1ba5aeb3889638 (patch)
tree41b04b52a7bc67da1b0cf5c1fa1ed8488344a7d3 /gateway
parent:bug: fix release (diff)
downloadserver-f6f550f10a7a78d5495a1ab44a1ba5aeb3889638.tar.xz
:arrow_up: update test client
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/opcodes/Identify.ts4
-rw-r--r--gateway/src/schema/Identify.ts2
2 files changed, 4 insertions, 2 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index adfd98da..95db7f3d 100644
--- a/gateway/src/opcodes/Identify.ts
+++ b/gateway/src/opcodes/Identify.ts
@@ -147,7 +147,9 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		// @ts-ignore
 		guilds: guilds.map((x) => {
 			// @ts-ignore
-			x.guild_hashes = {};
+			x.guild_hashes = {}; // @ts-ignore
+			x.guild_scheduled_events = []; // @ts-ignore
+			x.threads = [];
 			return x;
 		}),
 		guild_experiments: [], // TODO
diff --git a/gateway/src/schema/Identify.ts b/gateway/src/schema/Identify.ts
index cbd6630a..0835ddc7 100644
--- a/gateway/src/schema/Identify.ts
+++ b/gateway/src/schema/Identify.ts
@@ -5,7 +5,7 @@ export const IdentifySchema = {
 	$intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt
 	$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
+	// 	// discord 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,