mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: guildCreate cache
This commit is contained in:
parent
eef42a9a9f
commit
3c1465c0ee
@ -188,7 +188,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
|||||||
await this.events?.runEvent('BOT_READY', this, this.me, -1);
|
await this.events?.runEvent('BOT_READY', this, this.me, -1);
|
||||||
}
|
}
|
||||||
if (!this.__handleGuilds.size) delete this.__handleGuilds;
|
if (!this.__handleGuilds.size) delete this.__handleGuilds;
|
||||||
return;
|
return this.cache.onPacket(packet);
|
||||||
}
|
}
|
||||||
await this.events?.execute(packet.t, packet, this as Client<true>, shardId);
|
await this.events?.execute(packet.t, packet, this as Client<true>, shardId);
|
||||||
break;
|
break;
|
||||||
|
@ -345,7 +345,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
|
|||||||
await this.events?.runEvent('WORKER_READY', this, this.me, -1);
|
await this.events?.runEvent('WORKER_READY', this, this.me, -1);
|
||||||
}
|
}
|
||||||
if (!this.__handleGuilds.size) delete this.__handleGuilds;
|
if (!this.__handleGuilds.size) delete this.__handleGuilds;
|
||||||
return;
|
return this.cache.onPacket(packet);
|
||||||
}
|
}
|
||||||
await this.events?.execute(packet.t, packet, this, shardId);
|
await this.events?.execute(packet.t, packet, this, shardId);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user