Package net.dv8tion.jda.api.utils
Class Once<E extends GenericEvent>
java.lang.Object
net.dv8tion.jda.api.utils.Once<E>
- Type Parameters:
E
- Type of the event listened to
- All Implemented Interfaces:
EventListener
Helper class to listen to an event, once.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Once.Builder<E extends GenericEvent>
Builds a one-time event listener, can be reused. -
Method Summary
-
Method Details
-
onEvent
Description copied from interface:EventListener
Handles anyGenericEvent
.To get specific events with Methods like
onMessageReceived(MessageReceivedEvent event)
take a look at:ListenerAdapter
- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- The Event to handle.
-