Package com.dianxin.tori.api.interaction
Interface IModalHandler
public 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
-
Method Details
-
getModal
@NotNull @NotNull net.dv8tion.jda.api.modals.Modal getModal()Gets the Discord Modal component associated with this handler.- Returns:
- The configured
Modalinstance.
-
execute
void execute(net.dv8tion.jda.api.events.interaction.ModalInteractionEvent event) Executes the specific logic when the modal is submitted.- Parameters:
event- TheModalInteractionEventtriggered by the user.
-