diff --git a/src/sharding/ShardClientUtil.js b/src/sharding/ShardClientUtil.js index 026c97efa..acbe22508 100644 --- a/src/sharding/ShardClientUtil.js +++ b/src/sharding/ShardClientUtil.js @@ -46,11 +46,11 @@ class ShardClientUtil { } /** - * Shard ID or array of shard IDs of this client - * @type {number|number[]} + * Array of shard IDs of this client + * @type {number[]} * @readonly */ - get id() { + get ids() { return this.client.options.shards; } diff --git a/typings/index.d.ts b/typings/index.d.ts index 3c3e118f3..d0383f694 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -937,7 +937,7 @@ declare module 'discord.js' { public client: Client; public readonly count: number; - public readonly id: number | number[]; + public readonly ids: number[]; public mode: ShardingManagerMode; public parentPort: any; public broadcastEval(script: string): Promise;