Skip to content

Commit

Permalink
fix: GuildMemberStore#_fetchMany (discordjs#3420)
Browse files Browse the repository at this point in the history
* added DARK_MODE_INVISIBLE

added another constant color that makes embeds appear invisible on DARK mode.

* travis likes trailing commas

* fix: ref issue: discordjs#3414

* fix: removed a random color
  • Loading branch information
Fyko authored and samsamson33 committed Feb 27, 2020
1 parent fa95640 commit a29a68b
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) {
resolve(query || limit ? new Collection() : this);
if (this.guild.memberCount === this.size && !query && !limit) {
resolve(this);
return;
}
this.guild.shard.send({
Expand Down

0 comments on commit a29a68b

Please sign in to comment.