Class ShutdownEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.session.GenericSessionEvent
net.dv8tion.jda.api.events.session.ShutdownEvent
- All Implemented Interfaces:
GenericEvent
Indicates that JDA has fully disconnected from Discord and will not attempt to reconnect again.
At this stage all internal cache is invalid!
At this stage all internal cache is invalid!
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GenericSessionEvent
getStateMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
ShutdownEvent
-
-
Method Details
-
getTimeShutdown
Time of WebSocket disconnect- Returns:
OffsetDateTimerepresenting the point in time when the connection was dropped.
-
getCloseCode
-
getCode
public int getCode()The server close code that was in the disconnect close frame of this JDA instance.- Returns:
- int close code of the Server Close-Frame
-