![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.api.pagination.menu.ChoiceCallback 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.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