All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.pagination.interactive.InteractiveMenuBuilder Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.22
Show newest version
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