fix fetching all members

This commit is contained in:
Amish Shah
2017-08-26 13:08:54 +01:00
parent c3d7c73e47
commit 51fe80fd11
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ class WebSocketConnection extends EventEmitter {
this.status = Constants.Status.NEARLY;
if (!this.client.options.fetchAllMembers) return this.triggerReady();
// Fetch all members before marking self as ready
const promises = this.client.guilds.map(g => g.fetchMembers());
const promises = this.client.guilds.map(g => g.members.fetch());
Promise.all(promises)
.then(() => this.triggerReady())
.catch(e => {