fix: client onPacket

This commit is contained in:
MARCROCK22 2024-04-22 19:00:33 -04:00
parent ac93b7d119
commit a96db12337
2 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,10 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
await this.events?.execute(packet.t, packet, this as Client<true>, shardId);
await this.cache.onPacket(packet);
break;
case 'GUILD_DELETE':
case 'CHANNEL_UPDATE':
await this.events?.execute(packet.t, packet, this as Client<true>, shardId);
break;
//rest of the events
default: {
await this.cache.onPacket(packet);

View File

@ -325,6 +325,10 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
await this.events?.execute(packet.t, packet, this as WorkerClient<true>, shardId);
await this.cache.onPacket(packet);
break;
case 'GUILD_DELETE':
case 'CHANNEL_UPDATE':
await this.events?.execute(packet.t, packet, this as WorkerClient<true>, shardId);
break;
//rest of the events
default:
{