Webpack build for branch master: 51fe80fd11

This commit is contained in:
Travis CI 2017-08-26 12:12:50 +00:00
parent 8ccf816788
commit 92d323403a
2 changed files with 3 additions and 3 deletions

View file

@ -16714,7 +16714,7 @@ class WebSocketConnection extends EventEmitter {
this.status = Constants.Status.NEARLY; this.status = Constants.Status.NEARLY;
if (!this.client.options.fetchAllMembers) return this.triggerReady(); if (!this.client.options.fetchAllMembers) return this.triggerReady();
// Fetch all members before marking self as ready // 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) Promise.all(promises)
.then(() => this.triggerReady()) .then(() => this.triggerReady())
.catch(e => { .catch(e => {
@ -24546,7 +24546,7 @@ class GuildCreateHandler extends AbstractHandler {
* @event Client#guildCreate * @event Client#guildCreate
* @param {Guild} guild The created guild * @param {Guild} guild The created guild
*/ */
if (client.options.fetchAllMembers) await guild.fetchMembers(); if (client.options.fetchAllMembers) await guild.members.fetch();
client.emit(Constants.Events.GUILD_CREATE, guild); client.emit(Constants.Events.GUILD_CREATE, guild);
} }
} }

File diff suppressed because one or more lines are too long