mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
i am facepalming so hard right now (#740)
This commit is contained in:
parent
f1cb39a319
commit
b4f3575335
1 changed files with 2 additions and 2 deletions
|
|
@ -29,11 +29,11 @@ class Client extends EventEmitter {
|
|||
this.options = mergeDefault(Constants.DefaultOptions, options);
|
||||
|
||||
if (!this.options.shard_id && 'SHARD_ID' in process.env) {
|
||||
this.options.shard_id = process.env.SHARD_ID;
|
||||
this.options.shard_id = Number(process.env.SHARD_ID);
|
||||
}
|
||||
|
||||
if (!this.options.shard_count && 'SHARD_COUNT' in process.env) {
|
||||
this.options.shard_count = process.env.SHARD_COUNT;
|
||||
this.options.shard_count = Number(process.env.SHARD_COUNT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue