diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-21 23:19:29 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-21 23:19:54 +1000 |
commit | d993d9c155cb34f40dc2c1c5177addf44c7d9285 (patch) | |
tree | 0ce7ede3ea03706bacf895414f53e7c45e25ebf9 /gateway/src/events | |
parent | Fix /users/@me/settings get and migrarion (diff) | |
download | server-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.ts | 3 |
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 |