Package net.dv8tion.jda.api
Enum JDA.Status
- java.lang.Object
-
- java.lang.Enum<JDA.Status>
-
- net.dv8tion.jda.api.JDA.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JDA.Status>
- Enclosing interface:
- JDA
public static enum JDA.Status extends java.lang.Enum<JDA.Status>
Represents the connection status of JDA and its Main WebSocket.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTEMPTING_TO_RECONNECT
JDA has been disconnected from Discord and is currently trying to reestablish the connection.AWAITING_LOGIN_CONFIRMATION
JDA has sent authentication to discord and is awaiting confirmationCONNECTED
JDA has finished loading everything, is receiving information from Discord and is firing events.CONNECTING_TO_WEBSOCKET
JDA is currently attempting to connect it's websocket to Discord.DISCONNECTED
JDA's main websocket has been disconnected.FAILED_TO_LOGIN
While attempting to authenticate, Discord reported that the provided authentication information was invalid.IDENTIFYING_SESSION
JDA has successfully connected it's websocket to Discord and is sending authenticationINITIALIZED
JDA has finished setting up supporting systems and is ready to log in.INITIALIZING
JDA is currently setting up supporting systems like the AudioSystem.LOADING_SUBSYSTEMS
JDA is populating internal objects.LOGGING_IN
JDA is currently attempting to log in.RECONNECT_QUEUED
JDA session has been added toSessionController
and is awaiting to be dequeued for reconnecting.SHUTDOWN
JDA has finished shutting down and this instance can no longer be used to communicate with the Discord servers.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 downWAITING_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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInit()
static JDA.Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JDA.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 toSessionController
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 Detail
-
values
public static JDA.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JDA.Status c : JDA.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JDA.Status valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isInit
public boolean isInit()
-
-