docs: constructor param in the wrong place

This commit is contained in:
didinele 2023-05-08 17:06:21 +03:00
parent 92bc6d8a61
commit d2c7c90df1
No known key found for this signature in database
GPG key ID: 577AA3A485A5422C

View file

@ -99,8 +99,8 @@ const rest = new REST({ version: '10' }).setToken(token);
const redis = new Redis();
// you can get retrieve your shard count however you want, it's used for some calculations and should be your bot's TOTAL shard count
// across "clusters" or anything else.
const broker = new PubSubRedisBroker({ redisClient: redis }, Number(process.env.SHARD_COUNT!));
const gateway = new RedisGateway(broker);
const broker = new PubSubRedisBroker({ redisClient: redis });
const gateway = new RedisGateway(broker, Number(process.env.SHARD_COUNT!));
const client = new Client({ rest, gateway });