mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-08 01:51:19 +12:00
docs: constructor param in the wrong place
This commit is contained in:
parent
92bc6d8a61
commit
d2c7c90df1
|
@ -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 });
|
||||
|
||||
|
|
Loading…
Reference in a new issue