seyfert/packages/discordeno/gateway/manager/tellWorkerToIdentify.ts
Yuzu 47d20cb6e0
refactor: separate api types (#71)
* refactor: better api types boundaries

* fix: fmt
2022-07-18 21:18:10 +00:00

14 lines
569 B
TypeScript

import { GatewayIntents } from '../../../api-types/shared.ts';
import { createShard } from '../shard/createShard.ts';
import { GatewayManager } from './gatewayManager.ts';
/** Allows users to hook in and change to communicate to different workers across different servers or anything they like. For example using redis pubsub to talk to other servers. */
export async function tellWorkerToIdentify(
gateway: GatewayManager,
_workerId: number,
shardId: number,
_bucketId: number,
): Promise<void> {
return await gateway.manager.identify(shardId);
}