From b2eea1c900ba73d4b98b72f5c196f51e27d3ab8f Mon Sep 17 00:00:00 2001 From: advaith Date: Thu, 9 Jun 2022 01:35:27 -0700 Subject: [PATCH] docs(ClientOptions): fix closeTimeout default (#8049) --- packages/discord.js/src/util/Options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/util/Options.js b/packages/discord.js/src/util/Options.js index 3077d5eb0..0fe89000e 100644 --- a/packages/discord.js/src/util/Options.js +++ b/packages/discord.js/src/util/Options.js @@ -17,7 +17,7 @@ const Transformers = require('./Transformers'); * @property {number|number[]|string} [shards] The shard's id to run, or an array of shard ids. If not specified, * the client will spawn {@link ClientOptions#shardCount} shards. If set to `auto`, it will fetch the * recommended amount of shards from Discord and spawn that amount - * @property {number} [closeTimeout=1] The amount of time in milliseconds to wait for the close frame to be received + * @property {number} [closeTimeout=5_000] The amount of time in milliseconds to wait for the close frame to be received * from the WebSocket. Don't have this too high/low. Its best to have it between 2_000-6_000 ms. * @property {number} [shardCount=1] The total amount of shards used by all processes of this bot * (e.g. recommended shard count, shard count of the ShardingManager)