mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Add Shard#ready property and related events
This commit is contained in:
@@ -168,7 +168,7 @@ class ShardingManager extends EventEmitter {
|
||||
/**
|
||||
* Evaluates a script on all shards, in the context of the Clients.
|
||||
* @param {string} script JavaScript to run on each shard
|
||||
* @returns {Promise<Array>} Results of the script execution
|
||||
* @returns {Promise<Array<*>>} Results of the script execution
|
||||
*/
|
||||
broadcastEval(script) {
|
||||
const promises = [];
|
||||
@@ -179,7 +179,7 @@ class ShardingManager extends EventEmitter {
|
||||
/**
|
||||
* Fetches a client property value of each shard.
|
||||
* @param {string} prop Name of the client property to get, using periods for nesting
|
||||
* @returns {Promise<Array>}
|
||||
* @returns {Promise<Array<*>>}
|
||||
* @example
|
||||
* manager.fetchClientValues('guilds.size')
|
||||
* .then(results => {
|
||||
|
||||
Reference in New Issue
Block a user