Class ShutdownEvent

  • All Implemented Interfaces:

    public class ShutdownEvent
    extends Event
    Indicates that JDA has fully disconnected from Discord and will not attempt to reconnect again.
    At this stage all internal cache is invalid!
    • Method Detail

      • getTimeShutdown

        public OffsetDateTime getTimeShutdown()
        Time of WebSocket disconnect
        OffsetDateTime representing the point in time when the connection was dropped.
      • getCloseCode

        public CloseCode getCloseCode()
        Possibly-null CloseCode representing the meaning for this ShutdownEvent.
        The raw close code can be retrieved from getCode()
        If this is null, JDA does not know what the meaning for the connection loss was.
        Possibly-null CloseCode
      • getCode

        public int getCode()
        The server close code that was in the disconnect close frame of this JDA instance.
        int close code of the Server Close-Frame