Skip to content
Advertisement

How to filter the member counter in discord.js v13

I made a member counting system for my server but it counts every member that is joined. I want to filter the counter to just count the humans/users

My code:

JavaScript

I am using discord.js v13 and node.js v16

Advertisement

Answer

You can just filter through all the members in a server and remove all the members which are bots by checking the member.user.bot property. You can then update your code to:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement