Prevent lazyrequest when sent with guild_id as number

This commit is contained in:
Madeline 2022-08-21 23:19:29 +10:00
parent c7767e5fa4
commit d993d9c155

View File

@ -37,6 +37,9 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
} }
else return; 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); check.call(this, PayloadSchema, data);
// @ts-ignore // @ts-ignore