mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-22 01:14:52 +12:00
docs: constructor param in the wrong place
This commit is contained in:
parent
92bc6d8a61
commit
d2c7c90df1
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ const rest = new REST({ version: '10' }).setToken(token);
|
||||||
const redis = new Redis();
|
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
|
// 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.
|
// across "clusters" or anything else.
|
||||||
const broker = new PubSubRedisBroker({ redisClient: redis }, Number(process.env.SHARD_COUNT!));
|
const broker = new PubSubRedisBroker({ redisClient: redis });
|
||||||
const gateway = new RedisGateway(broker);
|
const gateway = new RedisGateway(broker, Number(process.env.SHARD_COUNT!));
|
||||||
|
|
||||||
const client = new Client({ rest, gateway });
|
const client = new Client({ rest, gateway });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue