-
-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Labels
feature requestNew feature requestNew feature requestpriority: mediumMedium PriorityMedium Prioritystatus: plannedPlanned in the futurePlanned in the future
Description
Summary
This meta issue outlines future plans to improve our implementation of modals and input text components
Enhancements planned:
Modal
-
timeout feature (not possible until discord adds support for dismissing the modal without submitting it) - stop() method
- decorator
- wait() method (Add
wait()
method toModal
class #1013) - on_error event
-
ApplicationContext
shortcut methods for sending modals - better
_ModalWeights
class (currently just uses the same logic from_ViewWeights
) - better dispatching (look into removing
ModalStore
as a requirement) - look into solving for ApplicationContext.respond behaves differently depending on situations (Slash command vs Modal dialog callback) #994
- more?
InputText
- decouple from
Item
inheritance - enforce label length limits to avoid sending invalid requests to the API (in progress as part of Add library-level enforcement of component field limits #1065, more testing needed)
- add library-side enforcement of other limits on things like max_length etc (in progress as part of Add library-level enforcement of component field limits #1065, more testing needed)
- fix typing issues (e.g. label) (in progress)
- more?
Rejected proposals:
-
Look at potentially moving away from Bot UI Kit (i.e. View-based approach) and treat them as higher level objects (may come as part of a larger rework to how other components are handled by the library)Not in line with library goals at this time.
Note: This issue is for organizational tracking purposes only. For discussion on any specific item, please reach out in our discord server.
Victorsitou, onerandomusername and ooliver1
Metadata
Metadata
Assignees
Labels
feature requestNew feature requestNew feature requestpriority: mediumMedium PriorityMedium Prioritystatus: plannedPlanned in the futurePlanned in the future