Merge branch 'master' into voice-rewrite

This commit is contained in:
Schuyler Cebulskie
2018-01-10 00:14:29 -05:00
3 changed files with 4 additions and 4 deletions

View File

@@ -70,11 +70,10 @@ class Client extends BaseClient {
this.voice = !browser ? new ClientVoiceManager(this) : null;
/**
* The shard helpers for the client
* (only if the process was spawned as a child, such as from a {@link ShardingManager})
* Shard helpers for the client (only if the process was spawned from a {@link ShardingManager})
* @type {?ShardClientUtil}
*/
this.shard = !browser && process.send ? ShardClientUtil.singleton(this) : null;
this.shard = !browser && process.env.SHARDING_MANAGER ? ShardClientUtil.singleton(this) : null;
/**
* All of the {@link User} objects that have been cached at any point, mapped by their IDs