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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplay(net.dv8tion.jda.api.entities.Message message) Displays this SelectionDialog by editing the providedMessage, starting with the first selection.voiddisplay(net.dv8tion.jda.api.entities.MessageChannel channel) Shows the SelectionDialog as a newMessagein the providedMessageChannel, starting with the first selection.voidshowDialog(net.dv8tion.jda.api.entities.MessageChannel channel, int selection) Shows the SelectionDialog as a newMessagein the providedMessageChannel, starting with the number selection provided.voidshowDialog(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.MessageChannel channel) Shows the SelectionDialog as a newMessagein 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.MessageChannel channel, int selection) Shows the SelectionDialog as a newMessagein 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
-