Interface FrameworkEvent
- All Known Implementing Classes:
FrameworkShutdownEvent, FrameworkStartEvent, InteractionFinishedEvent, InteractionStartEvent, RuntimeCloseEvent, RuntimeOpenEvent
public sealed interface FrameworkEvent
permits FrameworkShutdownEvent, FrameworkStartEvent, InteractionFinishedEvent, InteractionStartEvent, RuntimeCloseEvent, RuntimeOpenEvent
A FrameworkEvent is published at multiple points during the lifespan of the framework. It is always created by the framework
and can be subscribed to by users, who can provide own logic to run when
a certain event is published.
The currently available events are:
FrameworkShutdownEvent- fired inJDACommands.shutdown()FrameworkStartEvent- fired inJDACBuilder.start()InteractionStartEvent- fired before executing the interaction controller methodInteractionFinishedEvent- fired after executing the interaction controller methodRuntimeOpenEvent- fired at the start of a new interaction, e.g. when executing a slash commandRuntimeCloseEvent- fired at the end of a user interaction, e.g. due to inactivity
For further information on each event visit the corresponding javadoc.