InteractiveMenu |
InteractiveMenu.addMessageItem(String message,
Function<MessageMenuInteraction,reactor.core.publisher.Mono<Void>> action) |
Adds an item to this menu that is triggered when replying with a specific message.
|
InteractiveMenu |
InteractiveMenu.addReactionItem(String emojiName,
Function<ReactionMenuInteraction,reactor.core.publisher.Mono<Void>> action) |
Adds an item to this menu that is triggered when adding or removing a
reaction to the menu message.
|
InteractiveMenu |
InteractiveMenu.closeAfterMessage(boolean closeAfterMessage) |
Sets whether to close this menu after a message item is triggered.
|
InteractiveMenu |
InteractiveMenu.closeAfterReaction(boolean closeAfterReaction) |
Sets whether to close this menu after a reaction item is triggered.
|
InteractiveMenu |
InteractiveMenuService.create(String message) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
InteractiveMenu |
InteractiveMenuService.create(Consumer<discord4j.core.spec.MessageCreateSpec> messageCreateSpec) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
InteractiveMenu |
InteractiveMenuService.create(Function<Translator,reactor.core.publisher.Mono<Consumer<discord4j.core.spec.MessageCreateSpec>>> source) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
InteractiveMenu |
InteractiveMenuService.createAsyncPaginated(BiFunction<Translator,Integer,reactor.core.publisher.Mono<MessageSpecTemplate>> asyncPaginator) |
Creates a new InteractiveMenu prefilled with menu items useful for
pagination.
|
InteractiveMenu |
InteractiveMenuService.createPaginated(String text,
int pageLength) |
|
InteractiveMenu |
InteractiveMenuService.createPaginated(BiFunction<Translator,Integer,MessageSpecTemplate> paginator) |
Creates a new InteractiveMenu prefilled with menu items useful for
pagination.
|
InteractiveMenu |
InteractiveMenu.deleteMenuOnClose(boolean deleteMenuOnClose) |
Sets whether to delete the menu message when the menu is closed by user.
|
InteractiveMenu |
InteractiveMenu.deleteMenuOnTimeout(boolean deleteMenuOnTimeout) |
Sets whether to delete the menu message when the menu is closed automatically
by timeout
|
InteractiveMenu |
InteractiveMenu.withInteractionContext(Consumer<Map<String,Object>> contextConsumer) |
Initializes the interaction context that will be passed to all interaction
instances happening while this menu is open.
|
InteractiveMenu |
InteractiveMenu.withTimeout(Duration timeout) |
Sets a timeou after which the menu automatically closes.
|