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

io.github.freya022.botcommands.api.pagination.menu.ChoiceCallback 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.menu;

import io.github.freya022.botcommands.api.components.event.ButtonEvent;

/**
 * Callback called when an item has been chosen in a {@link ChoiceMenu}
 *
 * @param  Type of the entries
 */
public interface ChoiceCallback {
	/**
	 * Runs the callback
	 *
	 * @param event The {@link ButtonEvent} from the interacting user
	 * @param entry The selected entry from the {@link ChoiceMenu} elements
	 */
	void accept(ButtonEvent event, E entry);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy