![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.api.pagination.interactive.InteractiveMenuBuilder 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.pagination.PaginatorSupplier;
import org.jetbrains.annotations.NotNull;
/**
* Builds an {@link InteractiveMenu}
*/
public final class InteractiveMenuBuilder extends BasicInteractiveMenuBuilder {
public InteractiveMenuBuilder(@NotNull Components componentsService) {
super(componentsService);
}
@Override
@NotNull
public InteractiveMenu build() {
return new InteractiveMenu(componentsService, constraints, timeout, hasDeleteButton, firstContent, previousContent, nextContent, lastContent, deleteContent, items, usePaginator);
}
@Override
public InteractiveMenuBuilder setPaginatorSupplier(@NotNull PaginatorSupplier paginatorSupplier) {
throw new IllegalStateException("Interactive menu builder cannot have a PaginatorSupplier");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy