Prevent lazyrequest when sent with guild_id as number
This commit is contained in:
parent
c7767e5fa4
commit
d993d9c155
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user