Skip to content
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

Siero's decision prompts can be broken by sending number emoji #43

Open
jedmund opened this issue May 18, 2020 · 0 comments
Open

Siero's decision prompts can be broken by sending number emoji #43

jedmund opened this issue May 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jedmund
Copy link
Owner

jedmund commented May 18, 2020

Problem

If you send a number emoji that Siero did not automatically react with, receiveSelections still parses the reaction and the calling method will error because the option is out of range.

Possible solution

Automatically generate the possibleOptions array based on the number of options the user has.

Image

image

@jedmund jedmund added the bug Something isn't working label May 18, 2020
@jedmund jedmund self-assigned this May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant