fix: GuildMemberStore#_fetchMany (#3420)

* added DARK_MODE_INVISIBLE

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

* travis likes trailing commas

* fix: ref issue: #3414

* fix: removed a random color
This commit is contained in:
Carter
2019-08-21 09:52:08 -06:00
committed by Amish Shah
parent 5e4f9d436d
commit cc488a8bd3

View File

@@ -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({