-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop ends with 0 winners if participant triggers exemptMembers #429
Comments
#213 this can solve your issue |
Hi, yes indeed, putting an option that checks the number of winners required would solve the problem, but it would be like adding more steps, in this case, it would be easier to add the check of exemptMembers directly to the addition of the reaction on the Giveaway Drop ? |
exemptMembers was meant as a barrier directly before ending, e.g. when the bot was offline and users reacted. What you mean is technically the reactionAdded event. |
I believe this can be fixed by adding discord-giveaways/src/Manager.js Line 284 in 08b0a41
|
what should be done about the case, that a drop "never" reaches it's winnerCount. |
Yeah it'll be cool |
v5.2.0 was released. |
Describe the bug
In fact, the problem is that when a person who is normally part of the exclusions reacts, he is counted in the drop as a person who reacts, but is not counted in the fact that he can win, so if there is only one winner on the drop, if the 1st to add the reaction is a person who is part of the exclusions, the drop stops because it takes him into account, but indicates the "NoWinner" because he is excluded, so it would be necessary that the exclusions are also applied to the counter of the Drop reaction.
On the other hand, if there are several winners in the drop, if among the winners there are people excluded, the number of winners will not be equal to the number of winners set.
Error
The error is that it sets the "noWinner" variable directly, so the Giveaway stops, the error is the "noWinner", i don't have a real error, I don't know if that is clear?
To Reproduce
Steps to reproduce the behavior:
Example 1:
Example 2:
Expected behavior
That users excluded from the rewards do not count against the Giveaways Drop counter.
Screenshots
I can make a video if necessary.
Additional context
discord-giveaways
version: 5.1.0discord.js
version: 13.6.0Thanks you !
The text was updated successfully, but these errors were encountered: