See: Description
Class | Description |
---|---|
DisconnectEvent |
Indicates that JDA has been disconnected from the remote server.
|
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 |
ExceptionEvent |
Fired when JDA does not have a specific handling for a Throwable.
|
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 |
Indicates that JDA has fully disconnected from Discord
and will not attempt to reconnect again.
|
StatusChangeEvent |
StatusChangedEvent
Fired if our Status changed. |
This package contains all implementations of Event
.
These are specific depending on the event that has been received by the WebSocketClient
All events are forwarded by an IEventManager
implementation.
Some events are specific for JDA internal events such as the ReadyEvent
which is only fired when JDA finishes to setup its internal cache.