Allow choices to be set such that the server is polled for choices instead of being statically set #3298
-
Description The choices array on ApplicationCommandOption is statically assigned at creation time. There are some use cases where it provide much better UX by allowing choices to be dynamically fetched from the server, e.g. as the in-built /giphy does. Note: this is not suggesting to remove the existing static choices set, rather to augment them where needed. Why This is Needed While many commands function very well with statically defined choices for options, some commands would greatly benefit both on the server side and from a UX perspective if these option could be dynamically updated. Alternatives Considered
Additional Details As an example for where I would be using this type of choice: I have a room management system. Users can create, join, set properties on rooms. These are associated with an id on the back end so names can be descriptive and user settable. Currently this command tells users the names of rooms and their associated id's, then they must input said id into the relevant commands. Dynamic choices would allow setting an integer type with the associated name as "name" and the id as "value" to create a much better user experience. Ideally, this would be implemented as another InteractionType so that data can even be filtered farther based on the guild / channel / member and can follow the same 3 second expiry behavior. I would understand if this is not feasible to implement at this time, but I urge consideration for long term UX improvements. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Note: This is not officially out yet, but is implemented and being documented as noted here #3849 |
Beta Was this translation helpful? Give feedback.
Note: This is not officially out yet, but is implemented and being documented as noted here #3849