Package net.dv8tion.jda.api
Enum JDA.Status
- All Implemented Interfaces:
Serializable
,Comparable<JDA.Status>
- Enclosing interface:
JDA
Represents the connection status of JDA and its Main WebSocket.
-
Enum Constant Summary
Enum ConstantDescriptionJDA has been disconnected from Discord and is currently trying to reestablish the connection.JDA has sent authentication to discord and is awaiting confirmationJDA 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 authenticationJDA 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 toSessionController
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 downWhen 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 TypeMethodDescriptionboolean
isInit()
static JDA.Status
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 Details
-
INITIALIZING
JDA is currently setting up supporting systems like the AudioSystem. -
INITIALIZED
JDA has finished setting up supporting systems and is ready to log in. -
LOGGING_IN
JDA is currently attempting to log in. -
CONNECTING_TO_WEBSOCKET
JDA is currently attempting to connect it's websocket to Discord. -
IDENTIFYING_SESSION
JDA has successfully connected it's websocket to Discord and is sending authentication -
AWAITING_LOGIN_CONFIRMATION
JDA has sent authentication to discord and is awaiting confirmation -
LOADING_SUBSYSTEMS
JDA is populating internal objects. This process often takes the longest of all Statuses (besides CONNECTED) -
CONNECTED
JDA has finished loading everything, is receiving information from Discord and is firing events. -
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
JDA session has been added toSessionController
and is awaiting to be dequeued for reconnecting. -
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
JDA has been disconnected from Discord and is currently trying to reestablish the connection. -
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
JDA has finished shutting down and this instance can no longer be used to communicate with the Discord servers. -
FAILED_TO_LOGIN
While attempting to authenticate, Discord reported that the provided authentication information was invalid.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isInit
public boolean isInit()
-