#Trying to count number of reactions from user but only counts bots reaction count
7 messages · Page 1 of 1 (latest)
• 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.
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
Do you have the GuildMessageReactions intent?
yeah
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.GuildMessageReactions] });
Are you trying to check a message sent before or after your bot has last restarted?
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