From e793338d7403c98589e92943fee28068c18d481c Mon Sep 17 00:00:00 2001 From: Yukine Date: Sat, 17 Nov 2018 05:46:02 +0100 Subject: [PATCH] fix: ShardClientUtil#count and ShardClientUtil#id typedef (#2956) --- src/sharding/ShardClientUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sharding/ShardClientUtil.js b/src/sharding/ShardClientUtil.js index 9a2a746bc..201568ca1 100644 --- a/src/sharding/ShardClientUtil.js +++ b/src/sharding/ShardClientUtil.js @@ -44,8 +44,8 @@ class ShardClientUtil { } /** - * ID of this shard - * @type {number} + * Shard ID or array of shard IDs of this client + * @type {number|number[]} * @readonly */ get id() { @@ -58,7 +58,7 @@ class ShardClientUtil { * @readonly */ get count() { - return this.client.options.shardCount; + return this.client.options.totalShardCount; } /**