Sevlow
Sevlow
DIAdiscord.js - Imagine a boo! 👻
Created by Sevlow on 10/21/2023 in #djs-questions
Problem with counting members with catch
Can someone help me, cuz I have a problem with counting members. Generally, I am trying to count both bot count and non bots count but while the Guild.memberCount is equal 5, both the counts are equal 5(should be 4 bots and 1 person) Code:
g.members.cache.filter(m => m.user.bot).size
g.members.cache.filter(m => !m.user.bot).size
g.members.cache.filter(m => m.user.bot).size
g.members.cache.filter(m => !m.user.bot).size
25 replies