Package com.dianxin.tori.api.interaction
Interface IModalHandler
Represents a handler for a specific Discord Modal interaction.
Implement this interface to define the behavior when a user submits a modal form.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ModalInteractionEvent event) Executes the specific logic when the modal is submitted.@NotNull ModalgetModal()Gets the Discord Modal component associated with this handler.
-
Method Details
-
getModal
Gets the Discord Modal component associated with this handler.- Returns:
- The configured
Modalinstance.
-
execute
Executes the specific logic when the modal is submitted.- Parameters:
event- TheModalInteractionEventtriggered by the user.
-