
com.freya02.botcommands.api.pagination.menu.ChoiceCallback Maven / Gradle / Ivy
package com.freya02.botcommands.api.pagination.menu;
import com.freya02.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