mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
cleanup(ShardClientUtil): rename id to ids
This commit is contained in:
@@ -46,11 +46,11 @@ class ShardClientUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shard ID or array of shard IDs of this client
|
* Array of shard IDs of this client
|
||||||
* @type {number|number[]}
|
* @type {number[]}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get id() {
|
get ids() {
|
||||||
return this.client.options.shards;
|
return this.client.options.shards;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -937,7 +937,7 @@ declare module 'discord.js' {
|
|||||||
|
|
||||||
public client: Client;
|
public client: Client;
|
||||||
public readonly count: number;
|
public readonly count: number;
|
||||||
public readonly id: number | number[];
|
public readonly ids: number[];
|
||||||
public mode: ShardingManagerMode;
|
public mode: ShardingManagerMode;
|
||||||
public parentPort: any;
|
public parentPort: any;
|
||||||
public broadcastEval(script: string): Promise<any[]>;
|
public broadcastEval(script: string): Promise<any[]>;
|
||||||
|
|||||||
Reference in New Issue
Block a user