Package org.javacord.api
Class Javacord
- java.lang.Object
-
- org.javacord.api.Javacord
-
public class Javacord extends java.lang.ObjectThis class contains some static information about Javacord.
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.InstantBUILD_TIMESTAMPThe build timestamp at which the current Javacord version was built.static java.lang.StringCOMMIT_IDThe commit ID from which the current Javacord version was built.static java.lang.StringDISCORD_API_VERSIONThe API version from Discord which we are using.static java.lang.StringDISCORD_CDN_DOMAINThe domain of Discord's CDN.static java.lang.StringDISCORD_DOMAINThe domain of Discord.static java.lang.StringDISCORD_GATEWAY_VERSIONThe gateway version from Discord which we are using.static java.lang.StringDISCORD_VOICE_GATEWAY_VERSIONThe voice gateway version from Discord which we are using.static java.lang.StringDISPLAY_VERSIONThe display version of the current Javacord version.static java.lang.StringGITHUB_URLThe GitHub url of javacord.static java.lang.StringUSER_AGENTThe user agent used for requests.static java.lang.StringVERSIONThe current Javacord version.
-
-
-
Field Detail
-
VERSION
public static final java.lang.String VERSION
The current Javacord version.- See Also:
DISPLAY_VERSION
-
COMMIT_ID
public static final java.lang.String COMMIT_ID
The commit ID from which the current Javacord version was built.- See Also:
DISPLAY_VERSION
-
BUILD_TIMESTAMP
public static final java.time.Instant BUILD_TIMESTAMP
The build timestamp at which the current Javacord version was built.- See Also:
DISPLAY_VERSION
-
DISCORD_DOMAIN
public static final java.lang.String DISCORD_DOMAIN
The domain of Discord.- See Also:
- Constant Field Values
-
DISCORD_CDN_DOMAIN
public static final java.lang.String DISCORD_CDN_DOMAIN
The domain of Discord's CDN.- See Also:
- Constant Field Values
-
DISPLAY_VERSION
public static final java.lang.String DISPLAY_VERSION
The display version of the current Javacord version. If the current Javacord version is a release version, it is equal toVERSION. If the current Javacord version is a snapshot version, it consists of theVERSION, theCOMMIT_ID, and theBUILD_TIMESTAMP. For displaying the version somewhere it is best to use this constant.- See Also:
VERSION,COMMIT_ID,BUILD_TIMESTAMP
-
GITHUB_URL
public static final java.lang.String GITHUB_URL
The GitHub url of javacord.- See Also:
- Constant Field Values
-
USER_AGENT
public static final java.lang.String USER_AGENT
The user agent used for requests.
-
DISCORD_GATEWAY_VERSION
public static final java.lang.String DISCORD_GATEWAY_VERSION
The gateway version from Discord which we are using. A list with all gateway versions can be found here.- See Also:
- Constant Field Values
-
DISCORD_VOICE_GATEWAY_VERSION
public static final java.lang.String DISCORD_VOICE_GATEWAY_VERSION
The voice gateway version from Discord which we are using. A list with all voice gateway versions can be found here.- See Also:
- Constant Field Values
-
DISCORD_API_VERSION
public static final java.lang.String DISCORD_API_VERSION
The API version from Discord which we are using. A list with all API versions can be found here.- See Also:
- Constant Field Values
-
-