Webpack build for branch master: 5121a02f13

This commit is contained in:
Travis CI 2017-08-30 11:36:11 +00:00
parent 4596bb15a0
commit 290ae79a57
2 changed files with 4 additions and 4 deletions

View file

@ -24023,7 +24023,7 @@ class GuildMemberStore extends DataStore {
*/
fetch(options) {
if (!options) return this._fetchMany();
const user = this.client.resolver.resolveUser(options);
const user = this.client.resolver.resolveUserID(options);
if (user) return this._fetchSingle({ user, cache: true });
if (options.user) {
options.user = this.client.resolver.resolveUser(options);
@ -24033,8 +24033,8 @@ class GuildMemberStore extends DataStore {
}
_fetchSingle({ user, cache }) {
if (this.has(user.id)) return Promise.resolve(this.get(user.id));
return this.client.api.guilds(this.guild.id).members(user.id).get()
if (this.has(user)) return Promise.resolve(this.get(user));
return this.client.api.guilds(this.guild.id).members(user).get()
.then(data => {
if (cache) return this.create(data);
else return new GuildMember(this, data);

File diff suppressed because one or more lines are too long