mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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
|
||||
* @type {Object}
|
||||
*/
|
||||
this.env = Object.assign({}, process.env);
|
||||
this.env.SHARD_ID = this.id;
|
||||
this.env.SHARD_COUNT = this.manager.totalShards;
|
||||
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
|
||||
this.env = Object.assign({}, process.env, {
|
||||
SHARD_ID: this.id,
|
||||
SHARD_COUNT: this.manager.totalShards,
|
||||
CLIENT_TOKEN: this.manager.token,
|
||||
});
|
||||
|
||||
/**
|
||||
* Process of the shard
|
||||
|
||||
Reference in New Issue
Block a user