You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which application or package is this feature request for?
discord.js
Feature
With the new release of polls, I'm moving away from my homemade version to using discord's solution. A gripe I have is that when a answer is submitted or removed, it will give you the userId and the answer, but when the poll ends it only gives the total vote count. This is a little annoying because If I want to record who answered the poll, I have to constantly ping my db and keep track of who answered what or who revoked their answer. Additionally, polls don't have an id. I guess I could use the expiresTimestamp as an id but I feel like that's kind of a workaround as opposed to the poll having its own Id. Also, when a user answers no identifer is included in that payload. Thus, making it not possible to track multiple polls at once.
Ideal solution or implementation
Give polls ids. include the poll id on an answer and revoke answer. When a poll is complete, include who answered what. Ideally you also allow a poll to be made where only people with a certain role can answer but I have a solution for that already. Looking through the repo, I saw that the emitter is only returing the poll object that is a part of the message object. Simply just returning the message object and letting the user destrucure it would be a big help.
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered:
Which application or package is this feature request for?
discord.js
Feature
With the new release of polls, I'm moving away from my homemade version to using discord's solution. A gripe I have is that when a answer is submitted or removed, it will give you the userId and the answer, but when the poll ends it only gives the total vote count. This is a little annoying because If I want to record who answered the poll, I have to constantly ping my db and keep track of who answered what or who revoked their answer. Additionally, polls don't have an id. I guess I could use the expiresTimestamp as an id but I feel like that's kind of a workaround as opposed to the poll having its own Id. Also, when a user answers no identifer is included in that payload. Thus, making it not possible to track multiple polls at once.
Ideal solution or implementation
Give polls ids. include the poll id on an answer and revoke answer. When a poll is complete, include who answered what. Ideally you also allow a poll to be made where only people with a certain role can answer but I have a solution for that already. Looking through the repo, I saw that the emitter is only returing the poll object that is a part of the message object. Simply just returning the message object and letting the user destrucure it would be a big help.
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: