Annotation Interface Modal
Methods annotated with Modal will be registered as a modal at startup.
Therefore, the method must be declared inside a class that is annotated with
Interaction. Text inputs are defined via method parameters that must be annotated with TextInput.
You can reply with a modal by calling ModalReplyableEvent.replyModal(String, Entry...).
Example:
@Modal("My Modal")
public void onModal(ModalEvent event, @TextInput("Type here") String input) { ... }
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
-