mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-08 23:25:41 +00:00
Prevent lazyrequest when sent with guild_id as number
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user