#[solved] Get member count while filtering out bots

1 messages · Page 1 of 1 (latest)

shadow zenith
const memberCount = interaction.guild.members.filter(member => !member.user.bot).size;
```this apparently isn't a function, so how do I filter out the bots when getting the member count?