java.io.Serializable
, java.lang.Comparable<JDA.Status>
public static enum JDA.Status extends java.lang.Enum<JDA.Status>
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 confirmation
|
CONNECTED |
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 authentication
|
INITIALIZED |
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 to
SessionController
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 down
|
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.
|
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.
|
public static final JDA.Status INITIALIZING
public static final JDA.Status INITIALIZED
public static final JDA.Status LOGGING_IN
public static final JDA.Status CONNECTING_TO_WEBSOCKET
public static final JDA.Status IDENTIFYING_SESSION
public static final JDA.Status AWAITING_LOGIN_CONFIRMATION
public static final JDA.Status LOADING_SUBSYSTEMS
public static final JDA.Status CONNECTED
public static final JDA.Status DISCONNECTED
public static final JDA.Status RECONNECT_QUEUED
SessionController
and is awaiting to be dequeued for reconnecting.public static final JDA.Status WAITING_TO_RECONNECT
public static final JDA.Status ATTEMPTING_TO_RECONNECT
public static final JDA.Status SHUTTING_DOWN
public static final JDA.Status SHUTDOWN
public static final JDA.Status FAILED_TO_LOGIN
public static JDA.Status[] values()
for (JDA.Status c : JDA.Status.values()) System.out.println(c);
public static JDA.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isInit()