fix: sí faltaba algo

This commit is contained in:
MARCROCK22 2024-12-26 12:02:23 -04:00
parent 8b0ba23b1e
commit 1abbdebef6

View File

@ -185,7 +185,10 @@ export class EventHandler extends BaseHandler {
const Event = this.values[name];
try {
if (!Event || (Event.data.once && Event.fired)) {
return;
return this.client.cache.onPacket({
t: name,
d: packet,
} as GatewayDispatchPayload);
}
Event.fired = true;
const hook = await RawEvents[name]?.(client, packet as never);