Package com.jagrosh.jdautilities.menu
Class SelectionDialog
java.lang.Object
com.jagrosh.jdautilities.menu.Menu
com.jagrosh.jdautilities.menu.SelectionDialog
A
Menu
implementation that creates
a listed display of text choices horizontally that users can scroll through
using reactions and make selections.- Author:
- John Grosh
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(net.dv8tion.jda.api.entities.channel.middleman.MessageChannel channel) Shows the SelectionDialog as a newMessage
in the providedMessageChannel
, starting with the first selection.void
display
(net.dv8tion.jda.api.entities.Message message) Displays this SelectionDialog by editing the providedMessage
, starting with the first selection.void
showDialog
(net.dv8tion.jda.api.entities.channel.middleman.MessageChannel channel, int selection) Shows the SelectionDialog as a newMessage
in the providedMessageChannel
, starting with the number selection provided.void
showDialog
(net.dv8tion.jda.api.entities.Message message, int selection) Displays this SelectionDialog by editing the providedMessage
, starting with the number selection provided.Methods inherited from class com.jagrosh.jdautilities.menu.Menu
isValidUser, isValidUser
-
Field Details
-
UP
- See Also:
-
DOWN
- See Also:
-
SELECT
- See Also:
-
CANCEL
- See Also:
-
-
Method Details
-
display
public void display(net.dv8tion.jda.api.entities.channel.middleman.MessageChannel channel) Shows the SelectionDialog as a newMessage
in the providedMessageChannel
, starting with the first selection. -
display
public void display(net.dv8tion.jda.api.entities.Message message) Displays this SelectionDialog by editing the providedMessage
, starting with the first selection. -
showDialog
public void showDialog(net.dv8tion.jda.api.entities.channel.middleman.MessageChannel channel, int selection) Shows the SelectionDialog as a newMessage
in the providedMessageChannel
, starting with the number selection provided.- Parameters:
channel
- The MessageChannel to send the new Message toselection
- The number selection to start on
-
showDialog
public void showDialog(net.dv8tion.jda.api.entities.Message message, int selection) Displays this SelectionDialog by editing the providedMessage
, starting with the number selection provided.- Parameters:
message
- The Message to display the Menu inselection
- The number selection to start on
-