Home > Software engineering >  Member counter is not updating members count discord.js
Member counter is not updating members count discord.js

Time:05-02

I created a member counter, but it is not updating. it's stuck on 80585. When I want to update it, I need to restart the bot.

My code:

client.on("ready", async() => {

    let servercount = await client.guilds.cache.reduce((a,b) => a b.memberCount, 0 );
    
    const activities = [
        `${servercount} People           
  • Related