public class Slideshow extends Menu
Menu
implementation, nearly identical
to Paginator
, that displays an
individual image on each page instead of a list of text items.Like Paginator, reaction functions allow the user to traverse to the last page using the left arrow, the next page using the right arrow, and to stop the Slideshow prematurely using the stop reaction.
Modifier and Type | Class and Description |
---|---|
static class |
Slideshow.Builder
The
Menu.Builder for
a Slideshow . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BIG_LEFT |
static java.lang.String |
BIG_RIGHT |
static java.lang.String |
LEFT |
static java.lang.String |
RIGHT |
static java.lang.String |
STOP |
Modifier and Type | Method and Description |
---|---|
void |
display(net.dv8tion.jda.core.entities.Message message)
Begins pagination on page 1 displaying this by editing the provided
Message . |
void |
display(net.dv8tion.jda.core.entities.MessageChannel channel)
Begins pagination on page 1 as a new
Message
in the provided MessageChannel . |
void |
paginate(net.dv8tion.jda.core.entities.MessageChannel channel,
int pageNum)
Begins pagination as a new
Message
in the provided MessageChannel , starting
on whatever page number is provided. |
void |
paginate(net.dv8tion.jda.core.entities.Message message,
int pageNum)
Begins pagination displaying this by editing the provided
Message , starting on whatever
page number is provided. |
isValidUser, isValidUser
public static final java.lang.String BIG_LEFT
public static final java.lang.String LEFT
public static final java.lang.String STOP
public static final java.lang.String RIGHT
public static final java.lang.String BIG_RIGHT
public void display(net.dv8tion.jda.core.entities.MessageChannel channel)
Message
in the provided MessageChannel
.public void display(net.dv8tion.jda.core.entities.Message message)
Message
.public void paginate(net.dv8tion.jda.core.entities.MessageChannel channel, int pageNum)
Message
in the provided MessageChannel
, starting
on whatever page number is provided.channel
- The MessageChannel to send the new Message topageNum
- The page number to begin onpublic void paginate(net.dv8tion.jda.core.entities.Message message, int pageNum)
Message
, starting on whatever
page number is provided.message
- The MessageChannel to send the new Message topageNum
- The page number to begin on