plugins: fix errors (#2446)

This commit is contained in:
LTS20050703
2022-09-10 01:10:16 +07:00
committed by GitHub
parent 0dc0f8c52b
commit 4aba5ff72f
38 changed files with 357 additions and 515 deletions

View File

@@ -11,6 +11,6 @@ export async function fetchAndRetrieveMembers(bot: BotWithCache, guildId: bigint
throw new Error("The guild was not found in cache. Unable to fetch members for uncached guild.");
}
await bot.helpers.fetchMembers(guildId, guild.shardId);
await bot.helpers.fetchMembers(guildId, { limit: 0 });
return bot.members.filter((member) => member.guildId === guildId);
}