Skip to content

Commit

Permalink
Revert "fix: GuildMemberStore#_fetchMany (discordjs#3420)"
Browse files Browse the repository at this point in the history
This reverts commit a29a68b.
  • Loading branch information
samsamson33 committed Feb 27, 2020
1 parent 94bd9f6 commit 4db0228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/GuildMemberStore.js
Expand Up @@ -192,8 +192,8 @@ class GuildMemberStore extends DataStore {

_fetchMany({ query = '', limit = 0 } = {}) {
return new Promise((resolve, reject) => {
if (this.guild.memberCount === this.size && !query && !limit) {
resolve(this);
if (this.guild.memberCount === this.size) {
resolve(query || limit ? new Collection() : this);
return;
}
this.guild.shard.send({
Expand Down

0 comments on commit 4db0228

Please sign in to comment.