Class ModalHandlerBuilder
java.lang.Object
de.chojo.jdautil.modals.handler.ModalHandlerBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddInput(TextInputHandler handler) Adds a input handler.addInput(TextInputHandlerBuilder handler) Adds a input handler.build()withHandler(Consumer<ModalInteractionEvent> handler) Add a handler which will handle the event.
-
Method Details
-
addInput
Adds a input handler.- Parameters:
handler- handler- Returns:
- builder instance
-
addInput
Adds a input handler.- Parameters:
handler- handler- Returns:
- builder instance
-
withHandler
Add a handler which will handle the event. Called after the individual handlers of everyTextInputHandlerare called- Parameters:
handler- handler to handle even- Returns:
- builder instance
-
build
-