mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Only create ShardClientUtil when spawned by ShardingManager
This commit is contained in:
@@ -42,6 +42,7 @@ class Shard extends EventEmitter {
|
||||
* @type {Object}
|
||||
*/
|
||||
this.env = Object.assign({}, process.env, {
|
||||
SHARDING_MANAGER: true,
|
||||
SHARD_ID: this.id,
|
||||
SHARD_COUNT: this.manager.totalShards,
|
||||
CLIENT_TOKEN: this.manager.token,
|
||||
|
||||
Reference in New Issue
Block a user