Class | Description |
---|---|
DisconnectEvent |
DisconnectEvent
Fired if our connection to the WebSocket was disrupted. Use: Reconnect manually or stop background threads that need fired events to function properly. |
Event |
Event
Fired for every event. All events JDA fires are based on an instance of this class. Use: Used in EventListener implementations to distinguish what event is being fired.Example implementation: ListenerAdapter |
ReadyEvent |
ReadyEvent
Fired if our connection finished loading the ready event. Before this event was fired all entity related functions (like JDA#getUserById(String)) were not guaranteed to work as expected. Use: JDA finished populating internal objects and is now ready to be used. |
ReconnectedEvent |
ReconnectedEvent
Fired if JDA successfully re-established it's connection to the WebSocket. All Objects have been replaced when this is fired and events were likely missed in the downtime. Use: This marks the continuation of event flow stopped by the DisconnectEvent . |
ResumedEvent |
ResumedEvent
Fired if JDA successfully re-established it's connection to the WebSocket. All Objects are still in place and events are replayed. Use: This marks the continuation of event flow stopped by the DisconnectEvent . |
ShutdownEvent |
ShutdownEvent
Fired if JDA successfully finished shutting down. Use: Confirmation of JDA#shutdown(boolean). |
StatusChangeEvent |
StatusChangedEvent
Fired if our Status changed. |