Instances of menu
See original GitHub issueHaving different instances of the menu
Is it possible to have different instances of the menu opened in the application. For example let’s say we have an array of messages coming to the bot, and for each message we need to have a separate instance with it’s own state of buttons?
Modifying currently selected values of menu.select
This question is coming from previous one more or less. I have the situation explained above with select rows. So let’s say the options are a
, b
and c
with a
being default one which gets passed to the menu. When user makes a selection b
I delete the message with menu, but the instance is not terminated so, when the next message comes and menu pops up again the default option is b
now. The questions here is:
Shall I terminated menu together with the currently selected options or there is a more convenient way of updating values there ?
Thanks again for your patience and time, just want to get deeper understanding of the lib, cause I totally enjoy using it!
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
No problem at all, because after approx one month of randomly appearing bug I think I finally stumbled on solution when I was preparing the answer for your question and exploring the web hook. There was a regex catastrophic backtracking bug in my bot code which made the checks run for millions of times without giving me any errors, that’s why I couldn’t spot it. So you indeed helped, and your library is also super nice.
Have a very pleasant day and thanks again for being helpful 😃 Closing the issue
Sometimes linters spot issues with regex expressions. Linters in general are helpful for a lot of performance related stuff. I learned a lot of JS stuff from using linters.