io.github.freya022.botcommands.api.pagination.interactive.InteractiveMenu Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.pagination.interactive;
import io.github.freya022.botcommands.api.components.Components;
import io.github.freya022.botcommands.api.components.data.InteractionConstraints;
import io.github.freya022.botcommands.api.pagination.TimeoutInfo;
import io.github.freya022.botcommands.api.utils.ButtonContent;
import net.dv8tion.jda.api.interactions.components.selections.StringSelectMenu;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* A type of pagination which shows embeds and provides a {@link StringSelectMenu} to navigate between menus.
*
Each embed is bound to a selection menu.
*
This does not provide pagination for each embed (no arrow buttons, only the selection menu).
*/
public final class InteractiveMenu extends BasicInteractiveMenu {
InteractiveMenu(@NotNull Components componentsService,
InteractionConstraints constraints, TimeoutInfo timeout, boolean hasDeleteButton,
ButtonContent firstContent, ButtonContent previousContent, ButtonContent nextContent, ButtonContent lastContent, ButtonContent deleteContent,
@NotNull List> items, boolean usePaginator) {
super(componentsService, constraints, timeout, hasDeleteButton, firstContent, previousContent, nextContent, lastContent, deleteContent, items, usePaginator);
}
}