feat: deprecated shard
This commit is contained in:
@@ -15,6 +15,7 @@ let Worker = null;
|
||||
* an instance of the bot and its {@link Client}. When its child process/worker exits for any reason, the shard will
|
||||
* spawn a new one to replace it as necessary.
|
||||
* @extends {EventEmitter}
|
||||
* @deprecated
|
||||
*/
|
||||
class Shard extends EventEmitter {
|
||||
constructor(manager, id) {
|
||||
|
||||
@@ -8,6 +8,7 @@ const Util = require('../util/Util');
|
||||
/**
|
||||
* Helper class for sharded clients spawned as a child process/worker, such as from a {@link ShardingManager}.
|
||||
* Utilises IPC to send and receive data to/from the master process and other shards.
|
||||
* @deprecated
|
||||
*/
|
||||
class ShardClientUtil {
|
||||
constructor(client, mode) {
|
||||
|
||||
@@ -18,6 +18,7 @@ const Util = require('../util/Util');
|
||||
* with sharding. It can spawn a specific number of shards or the amount that Discord suggests for the bot, and takes a
|
||||
* path to your main bot script to launch for each one.
|
||||
* @extends {EventEmitter}
|
||||
* @deprecated
|
||||
*/
|
||||
class ShardingManager extends EventEmitter {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user