Class Javacord



  • public class Javacord
    extends Object
    This class contains some static information about Javacord.
    • Field Detail

      • COMMIT_ID

        public static final String COMMIT_ID
        The commit ID from which the current Javacord version was built.
        See Also:
        DISPLAY_VERSION
      • BUILD_TIMESTAMP

        public static final Instant BUILD_TIMESTAMP
        The build timestamp at which the current Javacord version was built.
        See Also:
        DISPLAY_VERSION
      • DISPLAY_VERSION

        public static final String DISPLAY_VERSION
        The display version of the current Javacord version. If the current Javacord version is a release version, it is equal to VERSION. If the current Javacord version is a snapshot version, it consists of the VERSION, the COMMIT_ID, and the BUILD_TIMESTAMP. For displaying the version somewhere it is best to use this constant.
        See Also:
        VERSION, COMMIT_ID, BUILD_TIMESTAMP
      • USER_AGENT

        public static final String USER_AGENT
        The user agent used for requests.
      • DISCORD_GATEWAY_VERSION

        public static final 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_API_VERSION

        public static final 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