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.
|
static InteractiveMenu |
InteractiveMenu.create(String message) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
static InteractiveMenu |
InteractiveMenu.create(Consumer<discord4j.core.spec.MessageCreateSpec> spec) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
static InteractiveMenu |
InteractiveMenu.create(reactor.core.publisher.Mono<Consumer<discord4j.core.spec.MessageCreateSpec>> specMono) |
Creates a new empty InteractiveMenu with a given message that will serve as
menu prompt.
|
static InteractiveMenu |
InteractiveMenu.createAsyncPaginated(AtomicInteger currentPageRef,
PaginationControls controls,
IntFunction<reactor.core.publisher.Mono<MessageSpecTemplate>> asyncPaginator) |
Creates a new InteractiveMenu prefilled with menu items useful for
pagination.
|
static InteractiveMenu |
InteractiveMenu.createPaginated(AtomicInteger currentPageRef,
PaginationControls controls,
IntFunction<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.withTimeout(Duration timeout) |
Sets a timeou after which the menu automatically closes.
|