#reaction count not counting user count only bots

9 messages · Page 1 of 1 (latest)

rigid jewel
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

tender geode
#

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); 
        
celest matrix
#

Does it return undefined or 0

tender geode
#

0

celest matrix
#

I think it’s called

tender geode
#

i do not no