Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
How to check if more then 1 user is in the guild (Discord js)
export function commonGuildCheck(bot: Client, ...users: User[]): Guild[] {
        const guildList: Guild[] = bot.guilds.cache.map(g => g);
        const newlist: Guild[] = guildList.filter(async g => {
            (users.forEach(async u => {
                return !!(g.members.cache.has(u.id) && await SetupHanlder.isMissingValues(g));
            }));
        });
        console.log(`newlist2: ${newlist}`);

        return newlist;
    }

I don't get it, why does "newlist" giving me all the guilds. even when I debugged it, the return statement was false. I thought if something is false filter will continue.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!