mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Webpack build for branch master: 5121a02f13
This commit is contained in:
parent
4596bb15a0
commit
290ae79a57
2 changed files with 4 additions and 4 deletions
|
|
@ -24023,7 +24023,7 @@ class GuildMemberStore extends DataStore {
|
||||||
*/
|
*/
|
||||||
fetch(options) {
|
fetch(options) {
|
||||||
if (!options) return this._fetchMany();
|
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 (user) return this._fetchSingle({ user, cache: true });
|
||||||
if (options.user) {
|
if (options.user) {
|
||||||
options.user = this.client.resolver.resolveUser(options);
|
options.user = this.client.resolver.resolveUser(options);
|
||||||
|
|
@ -24033,8 +24033,8 @@ class GuildMemberStore extends DataStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
_fetchSingle({ user, cache }) {
|
_fetchSingle({ user, cache }) {
|
||||||
if (this.has(user.id)) return Promise.resolve(this.get(user.id));
|
if (this.has(user)) return Promise.resolve(this.get(user));
|
||||||
return this.client.api.guilds(this.guild.id).members(user.id).get()
|
return this.client.api.guilds(this.guild.id).members(user).get()
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (cache) return this.create(data);
|
if (cache) return this.create(data);
|
||||||
else return new GuildMember(this, data);
|
else return new GuildMember(this, data);
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue