#reaction count not counting user count only bots
9 messages · Page 1 of 1 (latest)
node: v18.12.1
more code of mine
const filterOutBots = (reaction) => reaction.users.cache.filter((user) => !user.bot).size;
const totalVotes = pollReactions.reactions.cache
.map(filterOutBots)
.reduce((a, b) => a + b, 0);
console.log(totalVotes);
Does it return undefined or 0
0
i do not no