mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Simplify Shard.env
This commit is contained in:
committed by
GitHub
parent
1a3ea65abd
commit
ecee07655f
@@ -29,10 +29,11 @@ class Shard {
|
|||||||
* The environment variables for the shard
|
* The environment variables for the shard
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
this.env = Object.assign({}, process.env);
|
this.env = Object.assign({}, process.env, {
|
||||||
this.env.SHARD_ID = this.id;
|
SHARD_ID: this.id,
|
||||||
this.env.SHARD_COUNT = this.manager.totalShards;
|
SHARD_COUNT: this.manager.totalShards,
|
||||||
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
|
CLIENT_TOKEN: this.manager.token,
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process of the shard
|
* Process of the shard
|
||||||
|
|||||||
Reference in New Issue
Block a user