#createGatewayManager() spawn wrong amount of worker
1 messages · Page 1 of 1 (latest)
this looks like it worked?
properly no?
thats what u put
1 shard per worker
What are you trying to make it do?
const gateway = createGatewayManager({
token: process.env.Token,
intents: Intents.Guilds | Intents.GuildMessages,
totalShards: 3,
shardsPerWorker: 1,
totalWorkers: 16,
connection: await REST.getSessionInfo(),
events: {},
});
This is 3 workers. 1 shard per worker. Because you have 3 total shards and 1 shard per worker.
const gateway = createGatewayManager({
token: process.env.Token,
intents: Intents.Guilds | Intents.GuildMessages,
totalShards: 3,
shardsPerWorker: 3,
totalWorkers: 16,
connection: await REST.getSessionInfo(),
events: {},
});
this should spawn 1 worker with 3 shards