cleanup(ShardClientUtil): rename id to ids

This commit is contained in:
SpaceEEC
2019-04-01 13:46:27 +02:00
parent 3f5161eb76
commit 32a432f4a5
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

2
typings/index.d.ts vendored
View File

@@ -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<any[]>;