mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 19:08:17 +00:00
086258d1ea
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
12 lines
439 B
TypeScript
12 lines
439 B
TypeScript
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,
|
|
) {
|
|
await gateway.identify(gateway, shardId, gateway.maxShards);
|
|
}
|