Find bot in server

I need to find all bots in the server even if it does offline

const bots = message.guild.members.cache.filter(member => member.user.bot);
    let reply = "Here's a list of bots in this server:\n";
    let count = 1;
    bots.forEach(bot => {
      reply += `${count}. <@${bot.user.id}>\n`;
      count++;
    });
    
    message.channel.send(reply).catch(console.error);


The results are not accurate.

That server has 40 bots, but it appears to be abnormal.

3 Intents is already open

I thank Why it count message to find bot in discord server? Not members list?
IMG_2386.png
IMG_2387.png
IMG_2388.png
Was this page helpful?