mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01: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:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user