mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
feat(Sharding*): contexts for broadcastEval (#5756)
* feat(ShardClientUtil): add parameterList to broadcastEval * feat(ShardingManager): add parameterList to broadcastEval * chore: update typings * refactor(Sharding*): use BroadcastEvalOptions * chore: update typings * docs: use serializable instead of stringifiable * refactor: don't set broadcastEval default context Co-authored-by: Antonio Román <kyradiscord@gmail.com> * chore: fix inaccuracy in typings * refactor(Sharding*): remove string-based broadcastEval * fix(ShardingManager): incorrect usage of _broadcastEvalRaw * refactor(ShardingManager): remove unnecessary method * refactor(Sharding*): type check the eval script * fix(ShardingManager): return Promise rejection rather than throwing an error Co-authored-by: SpaceEEC <spaceeec@yahoo.com> * chore: fix typings Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -24,6 +24,7 @@ const Messages = {
|
||||
DISALLOWED_INTENTS: 'Privileged intent provided is not enabled or whitelisted.',
|
||||
SHARDING_NO_SHARDS: 'No shards have been spawned.',
|
||||
SHARDING_IN_PROCESS: 'Shards are still being spawned.',
|
||||
SHARDING_INVALID_EVAL_BROADCAST: 'Script to evaluate must be a function',
|
||||
SHARDING_SHARD_NOT_FOUND: id => `Shard ${id} could not be found.`,
|
||||
SHARDING_ALREADY_SPAWNED: count => `Already spawned ${count} shards.`,
|
||||
SHARDING_PROCESS_EXISTS: id => `Shard ${id} already has an active process.`,
|
||||
|
||||
Reference in New Issue
Block a user