mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix: the fix
This commit is contained in:
parent
7998577b07
commit
e4f715515c
@ -442,7 +442,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
|
||||
return Promise.all(promises);
|
||||
}
|
||||
|
||||
createShard(id: number, data: Pick<ManagerSpawnShards, 'info' | 'compress'>) {
|
||||
createShard(id: number, data: Pick<ManagerSpawnShards, 'info' | 'compress' | 'properties'>) {
|
||||
const onPacket = this.onPacket.bind(this);
|
||||
const handlePayload = this.options?.handlePayload?.bind(this);
|
||||
const self = this;
|
||||
@ -454,6 +454,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
|
||||
debugger: this.debugger,
|
||||
properties: {
|
||||
...properties,
|
||||
...data.properties,
|
||||
...this.options.gateway?.properties,
|
||||
},
|
||||
async handlePayload(shardId, payload) {
|
||||
|
@ -324,8 +324,8 @@ export class WorkerManager extends Map<
|
||||
shards: this._info!.shards,
|
||||
},
|
||||
properties: {
|
||||
...this.options.properties,
|
||||
...properties,
|
||||
...this.options.properties,
|
||||
},
|
||||
} satisfies ManagerSpawnShardsResharding);
|
||||
}
|
||||
@ -340,8 +340,8 @@ export class WorkerManager extends Map<
|
||||
shards: this.totalShards,
|
||||
},
|
||||
properties: {
|
||||
...this.options.properties,
|
||||
...properties,
|
||||
...this.options.properties,
|
||||
},
|
||||
} satisfies ManagerSpawnShards);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user