Enum JDA.Status

java.lang.Object
java.lang.Enum<JDA.Status>
net.dv8tion.jda.api.JDA.Status
All Implemented Interfaces:
Serializable, Comparable<JDA.Status>
Enclosing interface:
JDA

public static enum JDA.Status extends Enum<JDA.Status>
Represents the connection status of JDA and its Main WebSocket.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    JDA has been disconnected from Discord and is currently trying to reestablish the connection.
    JDA has sent authentication to discord and is awaiting confirmation
    JDA has finished loading everything, is receiving information from Discord and is firing events.
    JDA is currently attempting to connect it's websocket to Discord.
    JDA's main websocket has been disconnected.
    While attempting to authenticate, Discord reported that the provided authentication information was invalid.
    JDA has successfully connected it's websocket to Discord and is sending authentication
    JDA has finished setting up supporting systems and is ready to log in.
    JDA is currently setting up supporting systems like the AudioSystem.
    JDA is populating internal objects.
    JDA is currently attempting to log in.
    JDA session has been added to SessionController and is awaiting to be dequeued for reconnecting.
    JDA has finished shutting down and this instance can no longer be used to communicate with the Discord servers.
    JDA has received a shutdown request or has been disconnected from Discord and reconnect is disabled, thus, JDA is in the process of shutting down
    When trying to reconnect to Discord JDA encountered an issue, most likely related to a lack of internet connection, and is waiting to try reconnecting again.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static JDA.Status
    Returns the enum constant of this type with the specified name.
    static JDA.Status[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INITIALIZING

      public static final JDA.Status INITIALIZING
      JDA is currently setting up supporting systems like the AudioSystem.
    • INITIALIZED

      public static final JDA.Status INITIALIZED
      JDA has finished setting up supporting systems and is ready to log in.
    • LOGGING_IN

      public static final JDA.Status LOGGING_IN
      JDA is currently attempting to log in.
    • CONNECTING_TO_WEBSOCKET

      public static final JDA.Status CONNECTING_TO_WEBSOCKET
      JDA is currently attempting to connect it's websocket to Discord.
    • IDENTIFYING_SESSION

      public static final JDA.Status IDENTIFYING_SESSION
      JDA has successfully connected it's websocket to Discord and is sending authentication
    • AWAITING_LOGIN_CONFIRMATION

      public static final JDA.Status AWAITING_LOGIN_CONFIRMATION
      JDA has sent authentication to discord and is awaiting confirmation
    • LOADING_SUBSYSTEMS

      public static final JDA.Status LOADING_SUBSYSTEMS
      JDA is populating internal objects. This process often takes the longest of all Statuses (besides CONNECTED)
    • CONNECTED

      public static final JDA.Status CONNECTED
      JDA has finished loading everything, is receiving information from Discord and is firing events.
    • DISCONNECTED

      public static final JDA.Status DISCONNECTED
      JDA's main websocket has been disconnected. This DOES NOT mean JDA has shutdown permanently. This is an in-between status. Most likely ATTEMPTING_TO_RECONNECT or SHUTTING_DOWN/SHUTDOWN will soon follow.
    • RECONNECT_QUEUED

      public static final JDA.Status RECONNECT_QUEUED
      JDA session has been added to SessionController and is awaiting to be dequeued for reconnecting.
    • WAITING_TO_RECONNECT

      public static final JDA.Status WAITING_TO_RECONNECT
      When trying to reconnect to Discord JDA encountered an issue, most likely related to a lack of internet connection, and is waiting to try reconnecting again.
    • ATTEMPTING_TO_RECONNECT

      public static final JDA.Status ATTEMPTING_TO_RECONNECT
      JDA has been disconnected from Discord and is currently trying to reestablish the connection.
    • SHUTTING_DOWN

      public static final JDA.Status SHUTTING_DOWN
      JDA has received a shutdown request or has been disconnected from Discord and reconnect is disabled, thus, JDA is in the process of shutting down
    • SHUTDOWN

      public static final JDA.Status SHUTDOWN
      JDA has finished shutting down and this instance can no longer be used to communicate with the Discord servers.
    • FAILED_TO_LOGIN

      public static final JDA.Status FAILED_TO_LOGIN
      While attempting to authenticate, Discord reported that the provided authentication information was invalid.
  • Method Details

    • values

      public static JDA.Status[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static JDA.Status valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isInit

      public boolean isInit()