summary refs log tree commit diff
path: root/gateway/src/events
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 23:19:29 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 23:19:54 +1000
commitd993d9c155cb34f40dc2c1c5177addf44c7d9285 (patch)
tree0ce7ede3ea03706bacf895414f53e7c45e25ebf9 /gateway/src/events
parentFix /users/@me/settings get and migrarion (diff)
downloadserver-d993d9c155cb34f40dc2c1c5177addf44c7d9285.tar.xz
Prevent lazyrequest when sent with guild_id as number
Diffstat (limited to 'gateway/src/events')
-rw-r--r--gateway/src/events/Message.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts
index 83917690..e9271da4 100644
--- a/gateway/src/events/Message.ts
+++ b/gateway/src/events/Message.ts
@@ -37,6 +37,9 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
 	}
 	else return;
 
+	// TODO: find a way to properly convert a funny number to string
+	if (data?.op == 14 && typeof data.d.guild_id == "number") return;
+
 	check.call(this, PayloadSchema, data);
 
 	// @ts-ignore