fix: guildCreate cache

This commit is contained in:
MARCROCK22 2024-06-06 18:15:45 +00:00
parent eef42a9a9f
commit 3c1465c0ee
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
await this.events?.runEvent('BOT_READY', this, this.me, -1);
}
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);
break;

View File

@ -345,7 +345,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
await this.events?.runEvent('WORKER_READY', this, this.me, -1);
}
if (!this.__handleGuilds.size) delete this.__handleGuilds;
return;
return this.cache.onPacket(packet);
}
await this.events?.execute(packet.t, packet, this, shardId);
break;