@FunctionalInterface
public interface EventListener
Events to the registered EventListeners.
Register an EventListener with either a JDA object
or the JDABuilder.
Examples:
JDA jda = new JDABuilder(AccountType.BOT).addEventListener(listeners).buildBlocking();
jda.addEventListener(listeners);
ListenerAdapter,
InterfacedEventManager| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(Event event)
Handles any
Event. |
void onEvent(Event event)
Event.
To get specific events with Methods like onMessageReceived(MessageReceivedEvent event)
take a look at: ListenerAdapter
event - The Event to handle.