mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
fix some shard stuff on linux
This commit is contained in:
@@ -29,10 +29,9 @@ class Shard {
|
||||
* The environment variables for the shard
|
||||
* @type {Object}
|
||||
*/
|
||||
this.env = {
|
||||
SHARD_ID: this.id,
|
||||
SHARD_COUNT: this.manager.totalShards,
|
||||
};
|
||||
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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ const Discord = require('../');
|
||||
const request = require('superagent');
|
||||
const fs = require('fs');
|
||||
|
||||
const client = new Discord.Client({ fetchAllMembers: false, apiRequestMethod: 'burst' });
|
||||
const client = new Discord.Client({ fetchAllMembers: false, apiRequestMethod: 'sequential' });
|
||||
|
||||
const { email, password, token, usertoken, song } = require('./auth.json');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user