mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: sí faltaba algo
This commit is contained in:
parent
8b0ba23b1e
commit
1abbdebef6
@ -185,7 +185,10 @@ export class EventHandler extends BaseHandler {
|
|||||||
const Event = this.values[name];
|
const Event = this.values[name];
|
||||||
try {
|
try {
|
||||||
if (!Event || (Event.data.once && Event.fired)) {
|
if (!Event || (Event.data.once && Event.fired)) {
|
||||||
return;
|
return this.client.cache.onPacket({
|
||||||
|
t: name,
|
||||||
|
d: packet,
|
||||||
|
} as GatewayDispatchPayload);
|
||||||
}
|
}
|
||||||
Event.fired = true;
|
Event.fired = true;
|
||||||
const hook = await RawEvents[name]?.(client, packet as never);
|
const hook = await RawEvents[name]?.(client, packet as never);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user