mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
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:
parent
5e4f9d436d
commit
cc488a8bd3
1 changed files with 2 additions and 2 deletions
|
|
@ -192,8 +192,8 @@ class GuildMemberStore extends DataStore {
|
||||||
|
|
||||||
_fetchMany({ query = '', limit = 0 } = {}) {
|
_fetchMany({ query = '', limit = 0 } = {}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (this.guild.memberCount === this.size) {
|
if (this.guild.memberCount === this.size && !query && !limit) {
|
||||||
resolve(query || limit ? new Collection() : this);
|
resolve(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.guild.shard.send({
|
this.guild.shard.send({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue