mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: client onPacket
This commit is contained in:
parent
ac93b7d119
commit
a96db12337
@ -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);
|
||||
|
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user