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)
.
Example:
@Modal("My Modal")
public void onModal(ModalEvent event, @TextInput("Type here") String input) { ... }
- See Also:
-
Required Element Summary
-
Element Details
-
value
-