#Trying to count number of reactions from user but only counts bots reaction count

7 messages · Page 1 of 1 (latest)

rapid laurel
#

Having issues with counting number of reactions from a user

terse dew
#

• 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.

rapid laurel
#
        const optionAReactions = pollReactions.reactions.cache.get('🇦').count - 1
        const optionBReactions = pollReactions.reactions.cache.get('🇧').count - 1
        const optionCReactions = pollReactions.reactions.cache.get('🇨').count - 1
        const optionDReactions = pollReactions.reactions.cache.get('🇩').count - 1
        const optionEReactions = pollReactions.reactions.cache.get('🇪').count - 1
        const optionFReactions = pollReactions.reactions.cache.get('🇫').count - 1
        const optionGReactions = pollReactions.reactions.cache.get('🇬').count - 1

nocturne radish
rapid laurel
#

yeah

const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.GuildMessageReactions] });
nocturne radish
rapid laurel
#

it sends a poll embed and once the embed is finished final results are supposed to show (total reaction count) but nothing gets counted when the user reacts