Only enabling certain users to answer a poll

Looking at the PR the only data given from the vote added and vote removed listener is the answer and userId. I'm trying to think of ways where only a role could respond to the active poll but even using a db I don't see any possibilities since the listener does not give a lot of information to work with. Does anyone have any ideas?
3 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
monbrey
monbrey7mo ago
The Discord API doesn't offer role restriction on polls to my understanding, but the user id is all you really need Get the user id, fetch the corresponding guild member, check their roles
Beat.
Beat.OP7mo ago
Brilliant. Thank you.
Want results from more Discord servers?
Add your server