public class OrderedMenu extends Menu
Menu of ordered buttons signified
by numbers or letters, each with a reaction linked to it for users to click.
Up to ten text choices can be set in the OrderedMenu.Builder,
and additional methods for handling the resulting choice made by a user using the
menu may also be attached via the OrderedMenu.Builder.setSelection(BiConsumer)
and OrderedMenu.Builder.setCancel(Consumer) methods.
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderedMenu.Builder
The
Menu.Builder for
an OrderedMenu. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CANCEL |
static java.lang.String[] |
LETTERS |
static java.lang.String[] |
NUMBERS |
| Modifier and Type | Method and Description |
|---|---|
void |
display(net.dv8tion.jda.core.entities.Message message)
Displays this OrderedMenu by editing the provided
Message. |
void |
display(net.dv8tion.jda.core.entities.MessageChannel channel)
Shows the OrderedMenu as a new
Message
in the provided MessageChannel. |
isValidUser, isValidUserpublic static final java.lang.String[] NUMBERS
public static final java.lang.String[] LETTERS
public static final java.lang.String CANCEL
public void display(net.dv8tion.jda.core.entities.MessageChannel channel)
Message
in the provided MessageChannel.display in class Menuchannel - The MessageChannel to send the new Message tojava.lang.IllegalArgumentException - If all of the following are violated simultaneously:
TextChannel.Permission.MESSAGE_ADD_REACTION in the channel this menu is being sent to.public void display(net.dv8tion.jda.core.entities.Message message)
Message.display in class Menumessage - The Message to display the Menu injava.lang.IllegalArgumentException - If all of the following are violated simultaneously:
TextChannel.Permission.MESSAGE_ADD_REACTION in the channel this menu is being sent to.